note 57591 added to ref.mail

From: Date: Sat, 08 Oct 2005 01:45:01 +0000
Subject: note 57591 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-96653@lists.php.net to get a copy of this message
Send an e-mail directly to client smtp server in real time. For more informations, please visit : http://expert.no-ip.org/?free=smtp_mail&func <?php @set_time_limit(0); require_once 'smtp_mail.php'; $to = "expertphp@yahoo.com"; $from = "from@myaccount.com"; $subject = "Subject here"; $headers = "MIME-Version: 1.0\r\n". "Content-type: text/html; charset=iso-8859-1\r\n". "From: \"My Name\" <".$from.">\r\n". "To: \"Client\" <".$to.">\r\n". "Date: ".date("r")."\r\n". "Subject: ".$subject."\r\n"; $message = " <html> <body> <b>html message</b><br> <font color=\"red\">here</font> <img src=\"http://static.php.net/www.php.net/images/php.gif\" border=\"0\" alt=\"\"> </body> </html> "; $response = smtp_mail($to, $subject, $message, $from, $headers); if($response[0]) echo "The message has been sent !<br />\n".$response[1]; else echo "The message can not been sent !<br />\n".$response[1]; ?> ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57591 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57591&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57591&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96653) next »