note 79644 added to ref.mail
| From: | deacil at cox dot net | Date: | Thu, 06 Dec 2007 14:14:40 +0000 |
| Subject: | note 79644 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132890@lists.php.net to get a copy of this message | ||
Sorry to be a newbie but where do I make this change for godaddy?
require_once "Mail.php";
function emailHtml($from, $subject, $message, $to) {
$host = "localhost";
$username = "";
$password = "";
$headers = array ('MIME-Version' => "1.0", 'Content-type' =>
"text/html; charset=iso-8859-1;", 'From' => $from, 'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp', array ('host' => $host, 'auth' =>
false));
$mail = $smtp->send($to, $headers, $message);
if (PEAR::isError($mail))
return 0;
else
return 1;
}
Thanks
John
----
Server IP: 208.69.120.35
Probable Submitter: 68.3.106.122
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- https://master.php.net/note/edit/79644
Del: integrated -- https://master.php.net/note/delete/79644/integrated
Del: useless -- https://master.php.net/note/delete/79644/useless
Del: bad code -- https://master.php.net/note/delete/79644/bad+code
Del: spam -- https://master.php.net/note/delete/79644/spam
Del: non-english -- https://master.php.net/note/delete/79644/non-english
Del: in docs -- https://master.php.net/note/delete/79644/in+docs
Del: other reasons-- https://master.php.net/note/delete/79644
Reject -- https://master.php.net/note/reject/79644
Search -- https://master.php.net/manage/user-notes.php