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.
My forum cannot send emails idk why

MyBB was unable to send the email using the PHP mail() function.
?
Run this test file.
Create a php file with the following code.

Quote:<?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';
}
?>
Replace [email protected] with your mail ID.
Upload it to your Forum root, and visit it using your browser.
It should say "Mail was sent by PHP".

http://wiki.mybb.com/index.php/Help:Mail