I have a php script that automatically sends a "Thank You" e-mail to users that register at my Web site.
If the user enters an invalid e-mail address, the e-mail is returned to my hosting provider's address, not the "From:" e-mail address (header) in the script.
As you probably know php's mail(), besides the user's e-mail address, the subject, and the message, can send a fourth argument (headers) to sendmail. For example:
What 2nd header can I send to sendmail so that the invalid e-mail is return to me?
Please be very clear as I'm a newby at this.
FYI, my hosting provider uses sendmail (8.10.2) and Linux Redhat (6.2).
Thank you!
Anthony Rodriguez
If the user enters an invalid e-mail address, the e-mail is returned to my hosting provider's address, not the "From:" e-mail address (header) in the script.
As you probably know php's mail(), besides the user's e-mail address, the subject, and the message, can send a fourth argument (headers) to sendmail. For example:
Code:
mail("$user_e-mail",
" Thank You!",
"... message ...",
"From:SBW Research <mail@sbwresearch.com>\r\n".
"... next header ...\r\n");
What 2nd header can I send to sendmail so that the invalid e-mail is return to me?
Please be very clear as I'm a newby at this.
FYI, my hosting provider uses sendmail (8.10.2) and Linux Redhat (6.2).
Thank you!
Anthony Rodriguez