Re: [PHP] Sendemail appends domain to mail function
So sprach »Peter« am 2001-12-21 um 18:48:13 +0800 : How can I avoid this? By using a valid $from adress. It might also help to put the adress in , so: $from = xyz company; Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 4 days 23 hours 49 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sendemail appends domain to mail function
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 [EMAIL PROTECTED], you'd see that address unchanged. Alex. - Original Message - From: Peter [EMAIL PROTECTED] To: [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 .= brbr$items; mail([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 [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sendemail appends domain to mail function
Or, better yet, try From: XYZ company xyz@mydomain; Bogdan Alex Vargas wrote: 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 [EMAIL PROTECTED], you'd see that address unchanged. Alex. - Original Message - From: Peter [EMAIL PROTECTED] To: [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 .= brbr$items; mail([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 [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sendemail appends domain to mail function
On Friday 21 December 2001 11:48, Peter stuffed this into my mailbox: You probably have masquerading on I think. I believe it's the DM tag in the sendmail.conf off record I think you want to use this for spam. since else it's pretty useless to send email from a non-existing domain which XYZ is. i'll warn you now. If i receive spam from you I'll kick your ass. If it's not for spam I didn't say anything ok? :-) /off record 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 .= brbr$items; mail([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 [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sendemail appends domain to mail function
set From: like this - $mailheaders .= From: XYZ Company [EMAIL PROTECTED]\n; -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 4:48 AM To: [EMAIL PROTECTED] 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 .= brbr$items; mail([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 [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]