Mail() PHPMailer()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Mail() PHPMailer()

Post by neophyte »

Does anybody know how to correctly set up the headers so MSN/Hotmail will accept emails from mail(). Microsoft is evil :evil:

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Thanks Feyd that's a great thread. I tried searching the forums but I couldn't find what I was looking for...

I'll have to file that one away in my devnetwork goodies favorites folder

Thanks
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

The problem with mail() is that it sends the mail thru sendmail. Sendmail rewrites one of the from headers so it is different from the original send header.
You can use the last option of the mail() funktion but this will place a warning message in the header. I used phpmailer class and all is good now as the header is not rewritten.
Post Reply