note 40930 deleted from ref.mail by nlopess

From: Date: Tue, 23 Mar 2004 17:13:13 +0000
Subject: note 40930 deleted from ref.mail by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67058@lists.php.net to get a copy of this message
Note Submitter: michielATneturalDOTnl ---- 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"; ?>

« previous php.notes (#67058) next »