2012-09-13, 01:14 AM
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.
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.