4. Open the uploaded php file in your browser to
execute the php script.

5. The output show either "Message accepted" or "Error:
Message not accepted".

Message accepted:

Open your mail client to see if the message was delivered to the specified
email address.(also check your spam folder!)

If the message was delivered:

Everything is fine - php mail is working.

If the message was not delivered:

Some provider don't allow external recipients when using php mail.
Change the recipient ($recipient) in the code to a local recipient.
This means use an email address from the server's domain, for example
if your server domain is www.yourdomain.tld then the recipient's email
should be someone@yourdomain.tld.

Upload the modified php file and retry.

If it's still not working: change the sender ($sender) to a local
email (use the same email as used for recipient).

Upload the modified php file and retry.

Contact your provider if it still does not work.Tell your provider
that the standard php "mail()" function returns TRUE, but not mail will
be sent.It's recommended to include the used php test script to
show your provider, that the problem is not caused by the php script
used.

Error: Message not accepted

php mail might not be enabled:

Login to your webserver configuration and check the php settings.
Some php installations require that you setup a default sender in the
php configuration first.

Some provider don't allow external recipients when using php
mail:

Change the recipient ($recipient) in the code to a local recipient.
This means use an email address from the server's domain, for example
if your server domain is www.yourdomain.tld then the recipient's email
should be someone@yourdomain.tld.

Upload the modified php file and retry.

If it's still not working: change the sender ($sender) to a local
email (use the same email as used for recipient).

Upload the modified php file and retry.

If you have checked the php settings, tried a local recipient
and it's still not working:

Contact your provider if you are unable to enable php mail().
Tell your provider that the standard php "mail()" function returns FALSE.
It's recommended to include the used php test script to show your provider,
that the problem is not caused by the php script used.

Disclaimer: The information on this page is provided "as is" without warranty of any kind.
Further, Arclab Software does not warrant, guarantee, or make any representations
regarding the use, or the results of use, in terms of correctness, accuracy, reliability, currentness, or otherwise.
See: License Agreement