Webmastersite.net
Register Log In

email problem with -f parameter

Title email problem with -f parameter
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)
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership sertan6
Views 497 views. Averaging 0 views per day.
Similar Topics
Submission Date Dec 02, 2006 - 9:02 AM