note 102715 deleted from book.mail by danbrown

From: Date: Tue, 01 Mar 2011 21:51:08 +0000
Subject: note 102715 deleted from book.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177472@lists.php.net to get a copy of this message
Note Submitter: bsntech ---- I've run into some problems with the mail before when using a header line. Something like this: $message = "message to send is here"; $subject = "subject is here"; $mailto = "mail address here"; $headers = 'Content-Type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: BsnTech Networks <mail@mail.com>' . "\r\n"; mail($mailto, $subject, $message, $headers); Using the method above, it will allow you to send an HTML-formatted message - and you can see the breakdown of the message, subject, mailto, and headers. But when I put in this line: 'From: BsnTech Networks <mail@mail.com>' . "\r\n"; When the recipient receives it, it shows BsnTech@MISSING_DOMAIN. It should show mail@mail.com (example) instead of that above. Anyone know why? Brian S. BsnTech Networks http://www.bsntech.com

« previous php.notes (#177472) next »