MyBB Community Forums

Full Version: Formatting the function.php file to send emails
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I heard that I need to format the functions.php file so emails can be sent from my site since I have Dreamhost.

He sent me this code but I did it and it does not work:

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.

Last updated on: Sat Jun 02 00:00:00 -0700 2012.
Well, try int_set *
I'm not sure tho, i just didn't want nobody to help you.

cuz that'd make you sad. Toungue
(2012-09-13, 01:43 AM)Shaymangops Wrote: [ -> ]Well, try int_set *
I'm not sure tho, i just didn't want nobody to help you.

cuz that'd make you sad. Toungue

Thanks for the post. It did cheer me up.
Quote:YOURDOMAIN must be replaced by the domain where the forum is hosted.

I'm unsure about this paragraph, does he meant to use your domain or the domain of your host?

EDIT: Probably you can use a Hotmail/Gmail address there?
Can anyone help me?
Can you create an email account through Dreamhost that you can hook up to MyBB so it can send through SMTP?