Mourning the loss of our friend, WhitPhil.
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 audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor network networking outlook problem processor recovery registry cleaner router safe mode slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Mail Piping Problem

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
SNewman's Avatar
Member with 57 posts.
 
Join Date: Feb 2006
Location: New Jersey
Experience: Intermediate
02-Nov-2009, 10: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 57 posts.
 
Join Date: Feb 2006
Location: New Jersey
Experience: Intermediate
03-Nov-2009, 04: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 06:24 PM.
MMJ's Avatar
MMJ MMJ is online now
Distinguished Member with 3,519 posts.
 
Join Date: Oct 2006
03-Nov-2009, 08: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 57 posts.
 
Join Date: Feb 2006
Location: New Jersey
Experience: Intermediate
03-Nov-2009, 09: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 Bookmark and Share

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:17 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.