note 32437 deleted from ref.mail by kennyt
| From: | kennyt@php.net | Date: | Sun, 18 Jul 2004 17:40:20 +0000 |
| Subject: | note 32437 deleted from ref.mail by kennyt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73536@lists.php.net to get a copy of this message | ||
Note Submitter: flobee@gmx.net
----
while trying and trying to get text and html mails run... (both: Win / linux:
the one and only fault a made is the the "boundary" definition!
note:
create your own boundary:
$myboundary = "NO_SPACES_SIMPLE_LETTERS_MY_NAME". md5(rand()) ."";
define the boundary:
// in one line
$headers .= "Content-Type: multipart/mixed; boundary=\"$myboundary\"\n";
// using the boundary: "--" starts it
$headers .= "--$myboundary"
// ending it "--" at least!!!
$headers .= "--$myboundary--"