MyBB Community Forums

Full Version: MyBB was unable to send the email using the PHP mail() function.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings,

In System Mail log I see a bunch of these errors

MyBB was unable to send the email using the PHP mail() function.


I tried the Help:Mail Wiki and the script was successful in sending me the mail.


Please help.


TY.
I suspect that your host does not support the PHP mail() function. Check your PHP config to see if it is.

An easy way to check your php config is to create a document and put the following code in it:
<?
phpinfo();
?>
name it info.php and upload it to your server and then when you view that file you will see your php config settings.

Otherwise it is available in the admin panel of most hosts.

If it is not enabled then you may be able to get your host to enable it.
Hmm but I was able to send mail using this script

<?php
error_reporting(E_ALL);

$to = '[email protected]';

if(mail($to, 'Testing mail', 'This is a mailing test to see if PHP mail works.'))
{
     echo 'Mail was sent by PHP';
}
else
{
     echo 'PHP could not send the mail';
}
?>
Does any mail send?? Activation emails?? Thread subscriptions?? PM alert emails??
A user said he did receive a password-reset mail.