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!
I am using the code below to set headers for e-mail sent using mail(); Some of the e-mail clients do not pick up a Return-path. Instead when the user hits "Reply" in their e-mail client it loads nobody@host.sitename.com. Also could setting the priority of the message to high effect a users spam program in blocking out my message?
I have not met anything like that before. I mean that the priority of the mails would block it.
In my projects I put the responsibilities of sending emails on the shoulders of a free project: phpmailer. Very handy...
Your code seems to be as it is supposed to be. The reason for the bad reply address is because the mail function is using an unathenticated (from your point of view) way of sending messages.
If you want to make sure that the emails are being sent from that address use imap_mail function or phpmailer.
Well, I don't know!
When I tried it it worked to me once, a long time ago. But I am telling you, PHPMailer can do SMTP auth which will send emails from the email address of the account you log into. Therefore this is the best choice. It uses fopen to open up a socket to the SMTP server directly and composes MIME mails that way.