note 102715 added to book.mail

From: Date: Tue, 01 Mar 2011 21:50:00 +0000
Subject: note 102715 added to book.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-177471@lists.php.net to get a copy of this message
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 ---- 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

« previous php.notes (#177471) next »