Mail Piping Problem Hey!
So in a nutshell, I've created a homemade mailing list making use of mail piping, several classes from phpclasses.org, and some original code. Any e-mails sent to a specified address will be sent out with attachments to a specified list of recipients.
What I'd like is for the From field in the message that is sent out to reflect the original sender of the message. When I enable debugging on my script and run the script via a browser, it displays the correct from name and e-mail address (for example "Newman, Scott <snewman@lhup.edu>"). However, when debugging is disabled and a live test is run, the from field reads something like "Newman@chi01.genericservers.com". I have a feeling this is caused by the mail pipe (the new sender becomes the server rather than the original sender). Is there any way to fix this?
Also, as you can see by the included files, I have two separate files for two separate e-mail addresses. If at all possible, I'd like to just have one file that I can pipe both addresses to. Not critical, but it would be nice. Any way this can be done?
Thanks in advance for all your help. Hope this all made sense!
-----------
NOTE:
-----------
For privacy reasons, both recipient lists have been cleared. Please use your own e-mail address for testing.
__________________ Scott Newman
Serving n00bz since 2005! |