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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail function question

Status
Not open for further replies.

kamloops

Programmer
May 7, 2003
34
0
0
CA
Hi There,

When I use this code:

mail($email,$register_subj,$mesaj,"From:donotreply@donotreply.com");

With teh From address set to admin@auloveconnection.com it won't work but if I leave it the way it is, it works fine.

Any thoughts?

Thanks
 
Is auloveconnection.com a real website? Maybe the reason it doesn't work is that it doesn't recognize that name or something.

Another thing you might try is putting that from address into a variable, like this:

Code:
$fromaddr = "From:admin@auloveconnection.com";
mail($email,$register_subj,$mesaj,$fromaddr);

Hope this helps!

Peace out,
Peace Co.
 
I doubt it will matter whether the mail() function is invoked with a string literal or a variable.

kamloops, what do you mean when you say, "It doesn't work"?



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
It won't send the email message with the auloveconnection.com address. And yes it is a real website. If I use that address in Outlook it works fine.

Thanks
 
It's probably your mail server barfing on some missing SMTP header.

Have you tried setting the "Reply-To:" and "Return Path:" headers?



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
How do I do that?

Sorry I am a newbie! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top