MyBB Community Forums

Full Version: Email's from MyBB not arriving because ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
... it seems that the From: header could cause problems. Some of you may have read my previous frustration with trying to get mail sent from a website on a windows server. Using simple tests I found that it's vital that the From: header is sent with the message but I also found that even though I'd done this still no mail and so as a last resort I needed to do this:

ini_set ("sendmail_from","[email protected]");

Now it works from my test pages. Ok, this BIG question. How can I get mail from MyBB to work using this 'modification'? Should I add the ini_set somewhere within MyBB?

Any help on this would be gratefully received.

Rob
If that ini_set makes your email work, you should place it in global.php and admin/global.php. These files are required by all MyBB scripts, so putting that line in these files will make sure the parts that need it, have it.
Great, just what I needed to know, thank you!