note 40930 added to ref.mail

From: Date: Fri, 19 Mar 2004 12:01:10 +0000
Subject: note 40930 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-67057@lists.php.net to get a copy of this message
I finaly got mime mail working with a Socket connection to an SMTP server (using the socketmail function). Here are the headers you'll need per seperate email. <? $headers = "MAIL FROM:".$this->from."\n"; $headers .= "RCPT TO:$to_email\n"; $headers .= "DATA\n"; $headers .= "Date: Fri, 19 Mar 2004 12:23:59 +0100\n"; $headers .= "Return-Path: <".$this->returnadres.">\n"; $headers .= "To: $to_naam <$to_email>\n"; $headers .= "From: ".$from_name." <".$from_email.">\n"; $headers .= "Reply-To: ".$from_name." <".$from_email.">\n"; $headers .= "Subject: ".$this->subject." $i\n"; $headers .= "X-Sender: ".$from_name." <".$from_email.">\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "X-Priority: ".$priority."\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/alternative;\n boundary=\"text_boundary\"\n"; $headers .= "--text_boundary\n"; $headers .= "Content-Type: text/plain; charset = \"iso-8859-1\"\n"; $headers .= "Content-Transfer-Encoding: 8bit\n"; $headers .= stripslashes($message_plain)."\n"; $headers .= "--text_boundary\n"; $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; $headers .= "Content-Transfer-Encoding: 8bit\n"; $headers .= stripslashes($message)."\n"; $headers .= ".\n"; $headers .= "RSET\n"; ?> ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40930 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40930&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40930&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67057) next »