EMail Handling Question

Preface: I realize this is not the programming forum. I mention PHP in this question, but it's really immaterial, this is not a PHP question, just so you know...It's more a sendmail(?) server issue.
-----------
You know how when you send an email to someone, and say you got the address wrong, or the domain doesn't exist or something, the email gets sent back to you from the "mail delivery subsystem"? Well, when I write a PHP script to email someone and the address is wrong or invalid, it sends it to the default address of the server, not back to whom the "from" is set. I want to be able to control this via the headers, but I can't seem to figure out how. Does anyone know how that works exactly?

Any expertise will be greatly appreciated.

Randy

 

 

 

 

Top