PHPMailer On Behalf Of

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' ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-08-2006
thehuby
 
Posts: n/a
Default PHPMailer On Behalf Of

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

Reply With Quote
  #2 (permalink)  
Old 09-08-2006
NC
 
Posts: n/a
Default Re: PHPMailer On Behalf Of

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

Reply With Quote
  #3 (permalink)  
Old 09-09-2006
Alvaro G. Vicario
 
Posts: n/a
Default Re: PHPMailer On Behalf Of

*** 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
--
Reply With Quote
  #4 (permalink)  
Old 09-12-2006
thehuby
 
Posts: n/a
Default Re: PHPMailer On Behalf Of

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
> --


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0