MyBB Community Forums

Full Version: Activation mail not sended
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In system email log show .
MyBB was unable to send the email using the PHP mail() function.

Users not getting activation email.
please help me.

i tested with https://docs.mybb.com/1.8/faq/mail/

but it show PHP could not send the mail
its your Hosting Provider problem look like your provider blocked php mail on your account you can try using SMTP mail through targethero, maichimp, etc.
I saw in https://docs.mybb.com/1.8/faq/mail/

edit the file inc/functions.php to try a workaround fix.

Find: php mail($to, $subject, $message, $headers);

Add before: php ini_set("sendmail_from", "[email protected]");

The final result of the edit should be: php ini_set("sendmail_from", "[email protected]"); mail($to, $subject, $message, $headers);

YOURDOMAIN in the above code must be replaced by the domain where the forum is hosted.
============
Where to add YOURDOMAIN?

I cant find php mail($to, $subject, $message, $headers);