| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
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 <[email protected]>' . "\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 <[email protected]>' . "\r\n";
When the recipient receives it, it shows BsnTech@MISSING_DOMAIN. It should show [email protected] (example) instead of that above. Anyone know why?
Brian S.
BsnTech Networks
http://www.bsntech.com
----
Server IP: 208.69.120.55
Probable Submitter: 98.214.209.29
----
Manual Page -- http://www.php.net/manual/en/book.mail.php
Edit -- https://master.php.net/note/edit/102715
Del: integrated -- https://master.php.net/note/delete/102715/integrated
Del: useless -- https://master.php.net/note/delete/102715/useless
Del: bad code -- https://master.php.net/note/delete/102715/bad+code
Del: spam -- https://master.php.net/note/delete/102715/spam
Del: non-english -- https://master.php.net/note/delete/102715/non-english
Del: in docs -- https://master.php.net/note/delete/102715/in+docs
Del: other reasons-- https://master.php.net/note/delete/102715
Reject -- https://master.php.net/note/reject/102715
Search -- https://master.php.net/manage/user-notes.php