Php mail


#1

Hi-

I’m new to everything. When I use the php mail() function the mail on the other end has "@pretzel.dreamhost.com" tacked onto the end of the “From:” field - I get that. However, the script is running from a site/page in my www.superawesomegreat.com domain and I have that address coded in. So, people get mail that says (e.g.)
From: rick@superawesomegreat.com@pretzel.dreamhost.com

Can I have the mail function NOT add the server’s address onto the end so that receivers never see the mail server address? Moreover, they should be responding to email rick@superawesomegreat.com and I don’t want all the confusion. Perhaps I should be sending mail differently altogether?

Thanks a million in advance.
-Rick


#2

That will happen if you have coded the function incorrectly. The @pretzel.dreamhost.com (or similar) is appended to the “From:” field if it doesn’t contain a valid email address.


Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]