Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return path (php/sendmail)

Status
Not open for further replies.

rodriguez

Programmer
Apr 11, 2002
1
US
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:

Code:
mail("$user_e-mail",
     " Thank You!",
     "... message ...",
     &quot;From:SBW Research <mail@sbwresearch.com>\r\n&quot;. 
     &quot;... next header ...\r\n&quot;);

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top