note 48044 deleted from function.popen by danbrown

From: Date: Mon, 02 Mar 2009 13:40:04 +0000
Subject: note 48044 deleted from function.popen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151335@lists.php.net to get a copy of this message
Note Submitter: webmaster at elcurriculum dot com ---- This function send an email in html format. function SendEmail($to,$asunto,$html,$from) { $fd = popen("/usr/sbin/sendmail -t", "w"); fputs($fd, "Content-type: text/html\r\n"); fputs($fd, "To: $to\r\n"); fputs($fd, "From: TRYKE <" . $from . ">\r\n"); fputs($fd, "Subject: $asunto\r\n"); fputs($fd, "X-Mailer: PHP3\r\n\r\n"); fputs($fd, $html); pclose($fd); } Examples: SendEmail("tryke@hot.com","My Subject","<h1>Hi,<br>How are you?</h1>","miemail@midomain.com"); More: http://tryke.blogcindario.com

« previous php.notes (#151335) next »