blank emails

From: Date: Mon, 27 Sep 2004 15:27:16 +0000
Subject: blank emails
Groups: php.general 
Request: Send a blank email to php-general+get-197966@lists.php.net to get a copy of this message
Hello all! I have run into a problem with my email class. A bunch of reciepients are claiming that they are recieving blank emails. The problem is that I can't replicate the problem. Yet I know there is one, they keep forwarding the blank emails. I am hoping one of you email masters might be able to tell me what I am doing wrong: $boundry = "----_=_NextPart_".rand(100,999)."_".substr(md5(rand(1000,9999)),0,8).".".substr(md5(rand(1000,9999)),8,8); $to = "\"me@mycompany.com\" <me@mycompany.com>"; $subject = "Password Reminder"; $head = "From: $from\n"; $head .= "Return-Path: $from\n"; $head .= "MIME-Version: 1.0\n"; $head .= "Content-Type: multipart/alternative;\n"; $head .= " boundary=\"$boundry\"\n\n"; $head .= "This is a multi-part message in MIME format."; $body = "--$boundry\n"; $body .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n"; $body .= "Content-Transfer-Encoding: quoted-printable\n\n"; $body .= quoted_printable_encode($mssg_text); $body .= "\n\n\n"; $body .= "--$boundry\n"; $body .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; $body .= "Content-Transfer-Encoding: quoted-printable\n\n"; $body .= quoted_printable_encode($mssg_html); $body .= "\n\n--$boundry--"; mail ($to, $subject, $body, $header); Thanks for your help!

« previous php.general (#197966) next »