more email problems - the From field
| From: | Rohan Amin | Date: | Thu, 27 Jul 2000 19:26:27 +0000 |
| Subject: | more email problems - the From field | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8643@lists.php.net to get a copy of this message | ||
Hi again,
Thanks for the stripslashes() solution for the body of the message. It
works great.
I have another problem now.
on my email_send.php page the lines to email look like:
$BODY = stripslashes($BODY);
mail($TO_EMAIL,$SUBJECT,$BODY, "From: \"$session_fullname\"
<\"$session_email1\">\n");
When I get the email address the "FROM" field is all messed up:
"ramin@givingcapital.com"@projectmw.com
the @projectmw.com part is being tacked on by sendmail on the linux box I am
running PHP on, right? The linux box which is running PHP is called
projectmw.com. How do I get rid of that and make the FROM field look like
the following?:
ramin@givingcapital.com
Thanks in advance,
Rohan :-)