RE: [PHP] Emailing dilemma

From: Date: Wed, 28 Nov 2007 00:04:50 +0000
Subject: RE: [PHP] Emailing dilemma
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-265108@lists.php.net to get a copy of this message
Hi Rob, > > You could try the following headers (they might also cause trouble to the > antispam soft, but I'd give it a try) > > // Replies delivered to the user > Reply-To: <username@domain.com> > // Bounces delivered to the user > Return-Path: <username@domain.com> > // Errors delivered to the user > Errors-To: <username@domain.com> > > I don't know if either Return-Path or Errors-To will work (maybe > both work) > but I believe Errors-To would be more suitable... just give it a > try and let > us know. > Tried these but it doesn't stop the actual email envelope from using the sendmail_from tag as the Return-path. Did some testing and putting ini_set('sendmail_from', $useremail) just ahead of the $mail->send() command did the trick. It may be that it needs to have the headers set correctly to work, as I had tried this setting change in the past unsuccessfully. Anyway, another small problem removed from my list. Thanks to all who chipped in on this one. George

« previous php.general (#265108) next »