Reputation: 2891
Context:
Issue:
What I tried so far:
I don't know where to look anymore. Can anyone help who faced same or similar issues?
Thanks!
Upvotes: 0
Views: 53
Reputation: 11
Check if the phpmail function is working properly. You can use the following code to check it.
<?PHP
$sender = '[email protected]';
$recipient = '[email protected]';
$subject = "php mail test";
$message = "php test message";
$headers = 'From:' . $sender;
if (mail($recipient, $subject, $message, $headers))
{
echo "Message accepted";
}
else
{
echo "Error: Message not accepted";
}
?>
If it's showing "Error: Message not accepted"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.
Upvotes: 1