Message Text |
recently i found out that i could not send any emails, i contacted my host and he gave me this code for proper mail() usage:
$email_to = "MY_TO_EMAIL@EMAIL.COM";
$email_from = "MY_FROM_EMAIL@EMAIL.COM";
$subject = "test subject";
$body = "TESTING ";
$headers = "From: " .$email_from ."\r\n";
mail( $email_to, $subject, $body, $headers, "-f" . $email_from )
the existing mail() code in commonfuncs.php is:
mail( $email_to, $subject, $body, $headers, "-f")
i also found this code in http://php.net/function.mail:
-------------------------------------------------------
Example 3. Sending mail with an additional command line parameter.
The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path.
<?php
mail('nobody@example.com', 'the subject', 'the message', null,
'-fwebmaster@example.com');
?>
---------------------------------
i am not in a hurry though since i managed to fix it (at least the non-queue version) |