2011-08-17, 06:38 PM
Hi, I created a website for my community and I installed MyBB. When someone signs up they don't get an activation code by email. I was also trying but I didn't get an email. Why? Could someone help me?
(2011-08-17, 06:38 PM)danne12399 Wrote: [ -> ]Hi, I created a website for my community and I installed MyBB. When someone signs up they don't get an activation code by email. I was also trying but I didn't get an email. Why? Could someone help me?
(2011-08-17, 06:50 PM)danne12399 Wrote: [ -> ]"MyBB was unable to send the email using the PHP mail() function."Sounds like your host has disabled this function ... contact your host
Why?
Quote:mail($to, $subject, $message, $headers);"in the file.
Quote:Some webhosts have various restrictions on PHP mail. Some hosts require that the "From" address be a mailbox address on their server. Other hosts may disable the mail function completely. Please ask your webhost if there are any special restrictions they have on sending mail via PHP.
If your webhost has restricted that only mails from there own domain is allowed, try to edit the file inc/functions.php. Look for:
mail($to, $subject, $message, $headers);
and include above: ini_set("sendmail_from", " [email protected] ");
Then it should look like this:
ini_set("sendmail_from", " [email protected] ");
mail($to, $subject, $message, $headers);
YOURDOMAIN must be replaced by the domain where the forum is hosted.
(2011-08-17, 09:02 PM)danne12399 Wrote: [ -> ]I saw this but I can't find "so have you found out if php mail is suported by your host ? if not you will have to configure mybb to use smtp mailQuote:mail($to, $subject, $message, $headers);"in the file.
Quote:Some webhosts have various restrictions on PHP mail. Some hosts require that the "From" address be a mailbox address on their server. Other hosts may disable the mail function completely. Please ask your webhost if there are any special restrictions they have on sending mail via PHP.
If your webhost has restricted that only mails from there own domain is allowed, try to edit the file inc/functions.php. Look for:
mail($to, $subject, $message, $headers);
and include above: ini_set("sendmail_from", " [email protected] ");
Then it should look like this:
ini_set("sendmail_from", " [email protected] ");
mail($to, $subject, $message, $headers);
YOURDOMAIN must be replaced by the domain where the forum is hosted.
http://wiki.mybb.com/index.php/Help:Mail
Or do anyone know if I can turn off/remove this mail activation in some way?
Can someone help?!