There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop lcd malware memory modem monitor motherboard network printer problem ram registry router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Mail Piping Problem

Reply  
Thread Tools
SNewman's Avatar
Member with 82 posts.
 
Join Date: Feb 2006
Location: New Jersey
Experience: Intermediate
02-Nov-2009, 11:26 PM #1
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.
Attached Files
File Type: zip mailPiper.zip (14.2 KB, 0 views)
__________________
Scott Newman

Serving n00bz since 2005!
SNewman's Avatar
Member with 82 posts.
 
Join Date: Feb 2006
Location: New Jersey
Experience: Intermediate
03-Nov-2009, 05:11 PM #2
Anyone have any ideas?

--------
EDIT
--------

After further testing, I've determined that the script does in fact grab the correct From: name and e-mail address, and that the problem is coming from the actual mailer class...most likely in the setTo function. I just can't figure it out...

Oh yeah. I also only encounter the problem with the From address when sending mail from Outlook Web Access. When sending mail from Windows Mail, the From name and address shows correctly.
__________________
Scott Newman

Serving n00bz since 2005!

Last edited by SNewman; 03-Nov-2009 at 07:24 PM..
MMJ's Avatar
MMJ MMJ is offline
Senior Member with 3,637 posts.
 
Join Date: Oct 2006
03-Nov-2009, 09:58 PM #3
I skimmed your posts so your problem could be something completely different but you might want to look at sendmail's -f switch option.
SNewman's Avatar
Member with 82 posts.
 
Join Date: Feb 2006
Location: New Jersey
Experience: Intermediate
03-Nov-2009, 10:52 PM #4
Well, after much digging I've discovered the problem. My particular host uses exim as the MTA, and apparently there is a configuration option "local_from_check" which will overwrite any From e-mail address you specify if it can not be verified and it is not configured in the "trusted_users" option, obviously to combat spam. Hopefully my host is able to disable the check on just my account or there is some other work around for this.
__________________
Scott Newman

Serving n00bz since 2005!
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:37 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.