RE: [PHP] Sendemail appends domain to mail function
| From: | Michael Geier | Date: | Fri, 21 Dec 2001 15:36:48 +0000 |
| Subject: | RE: [PHP] Sendemail appends domain to mail function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78476@lists.php.net to get a copy of this message | ||
set From: like this -
$mailheaders .= "From: XYZ Company <xyz@domain.com>\n";
-----Original Message-----
From: Peter [mailto:php_guy@visors.com.hk]
Sent: Friday, December 21, 2001 4:48 AM
To: php-general@lists.php.net
Subject: [PHP] Sendemail appends domain to mail function
Hi,
I have problem.
Everytime that I want to send email using a PHP script from my server, it
automatically appends the domain name of my server to the "From:" line.
else
{
$mailheaders .= "From: XYZ company\n";
$mailheaders .= "Reply-To: $email\r\n";
$mailheaders .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$remarks .= "<br><br>$items";
mail("yungp@netvigator.com", "quotation enquiry", $remarks, $mailheaders);
?><img src="images/thank_you.gif"><?
}
}
As you can see from the example above , I use XYZ company , but in the
email that I receive it comes out as XYZ company@ns.visors.com.hk.
It automatically appended the domain name to the end of it.
How can I avoid this?
Thanks.
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net