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.
After register, i can not receive the activated email.
Before that, i had set the admin email correctly.
So i'am confused, anybody can taught me, thanks![/align]
(2013-06-17, 03:12 PM)riskman Wrote: [ -> ]After register, i can not receive the activated email.
Before that, i had set the admin email correctly.
So i'am confused, anybody can taught me, thanks![/align]

First of all lets check if mail() function is enabled in your host. Change both "[email protected]", then upload this file to your host and visit the file. and see if you can get the mail or not.

<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "email message.";
$from = "[email protected]";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
i done this and the mail was sent.. But i still cant send/receive emails or private messages through my forum.. What do i do next ? Smile
(2014-06-26, 06:22 PM)gazonline Wrote: [ -> ]i done this and the mail was sent.. But i still cant send/receive emails or private messages through my forum.. What do i do next ? Smile

ask your host. IP spamming maybe Big Grin