Wednesday, July 15, 2009

How do I change the Return-path for emails sent from a script via SMTP (not the php mail() function)

this is for a domain on a linux server



right now the server sets the return path to root@host.domain.com



this is different than Reply-To or Errors-To as most bounces get sent back to the Return-path email



How do I change the Return-path for emails sent from a script via SMTP (not the php mail() function)?





You%26#039;ll want to change the path to sendmail in your php.ini file:



sendmail_path = /path/to/sendmail -t -f addy@domain.com



The -f switch sets the return-path to be the addy@domain.com address.



How do I change the Return-path for emails sent from a script via SMTP (not the php mail() function)?



u can also use .muttrc file and send mail using system(%26quot;mutt ......%26quot;); in php.



kshounish@yahoo.com

No comments:

Post a Comment