This is a discussion on PHPMailer On Behalf Of within the PHP Language forums, part of the PHP Programming Forums category; Does anyone know how I can send an email using PHPMailer (or similar) and have it send 'on behalf of' ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Does anyone know how I can send an email using PHPMailer (or similar)
and have it send 'on behalf of' someone. This is for a tell a friend feature on a website (I am trying to mimic the way that the BBC website does it as I believe this will help with the more strict spam filters). I know I could just send the email directly from our sites email address, but that would stop the recipient being able to reply to the friend sending the email. I hope that makes sense! Regards, Rick |
|
|||
|
thehuby wrote:
> > Does anyone know how I can send an email using > PHPMailer (or similar) and have it send 'on behalf of' > someone. There are things beyond PHP here. Your outgoing mail server must permit this. Many hosting companies do not allow sending mail with "From:" headers containing addresses that do not belong to the domain being hosted. If this is not a problem, there are plenty of examples at phpMailer Web site: http://phpmailer.sf.net/ Cheers, NC |
|
|||
|
*** thehuby escribió/wrote (8 Sep 2006 04:24:10 -0700):
> Does anyone know how I can send an email using PHPMailer (or similar) > and have it send 'on behalf of' someone. > > This is for a tell a friend feature on a website (I am trying to mimic > the way that the BBC website does it as I believe this will help with > the more strict spam filters). I know I could just send the email > directly from our sites email address, but that would stop the > recipient being able to reply to the friend sending the email. Since it is your web site the one that's actually sending the message, I'd put your site's e-mail in the "From" field and the visitor's address in the "Reply-to" field, along with a brief explanation. -- -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain ++ Mi sitio sobre programación web: http://bits.demogracia.com +- Mi web de humor con rayos UVA: http://www.demogracia.com -- |
|
|||
|
Thanks for the suggestions - I have gone with the Reply To option for
simplicity. Very simple using PHPMailer - I doubt my host would have changed their mail system settings for me! Rick Alvaro G. Vicario wrote: > *** thehuby escribió/wrote (8 Sep 2006 04:24:10 -0700): > > Does anyone know how I can send an email using PHPMailer (or similar) > > and have it send 'on behalf of' someone. > > > > This is for a tell a friend feature on a website (I am trying to mimic > > the way that the BBC website does it as I believe this will help with > > the more strict spam filters). I know I could just send the email > > directly from our sites email address, but that would stop the > > recipient being able to reply to the friend sending the email. > > Since it is your web site the one that's actually sending the message, I'd > put your site's e-mail in the "From" field and the visitor's address in the > "Reply-to" field, along with a brief explanation. > > > -- > -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain > ++ Mi sitio sobre programación web: http://bits.demogracia.com > +- Mi web de humor con rayos UVA: http://www.demogracia.com > -- |