Modifying envelope headers (sending to an alternate address)

View: New views
1 Messages — Rating Filter:   Alert me  

Modifying envelope headers (sending to an alternate address)

by danep :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello- basically, I am wondering if it's possible to specify/spoof a "To" address in the message headers but actually send the email to a different address.

I am trying to integrate PHPMailer with a Drupal module sometimes used for mailing lists. It seems that when you receive an email from most mailing lists, the "To" header lists the mailing list address (instead of your own address). This is the effect I'd like to mimic. I could do this by actually sending the mail to the mailing list address and BCCing recipients, but I'd prefer not to because this would require the mailing list to filter out messages that it sends to itself (not easy in my case because a completely different module receives such messages before they are eventually sent by mine). I know that this is definitely allowed for in the SMTP protocol (headers have nothing to do with the message envelope), I just don't know if it can be managed with PHPMailer. Thanks for any advice!

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Phpmailer-general mailing list
Phpmailer-general@...
https://lists.sourceforge.net/lists/listinfo/phpmailer-general