Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001122

Re: [PHP] Sendemail appends domain to mail function From: Alex Vargas (avargas <email protected>)
Date: 12/21/01

That's because XYZ company isn't a valid email address and sendmail fixes
the address with the name of the server. If you'd put
XYZ_company <email protected>, you'd see that address unchanged.

Alex.

----- Original Message -----
From: "Peter" <php_guy <email protected>>
To: <php-general <email protected>>
Sent: Friday, December 21, 2001 11:48 AM
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 <email protected>", "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 <email protected>
>
> 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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>