Have you perhaps tried rather sending the mail using MIMETools ?
There's a PHP class writen that's actually pretty good for sending MIME based
email... I'm not sure what it's called now, but I'm sure someone else on the
list will be able to elaborate on this.
On Thu, Jul 11, 2002 at 12:26:45PM -0700, Shane wrote:
> I am trying to send an EMBED and OBJECT tag inside an HTML email using the mail()
> My HEADER Content type is...
> $headers = "MIME-Version: 1.0\r\n";
> $headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
> $headers.= "From: ".$myname."<".$myemail.">\r\n";
May not be of importance, but you're missing a space.
> $headers.= "To: ".$contactname."<".$contactemail.">\r\n";
> $headers.= "Reply-To: ".$myname."<$myreplyemail>\r\n";
> $headers.= "X-Priority: 1\r\n";
> $headers.= "X-MSMail-Priority: High\r\n";
> $headers.= "X-Mailer: Just My Server";
> mail($contactemail, $subject, $message, $headers);
> Each Time I add the EMBED or OBJECT tag, the mail() call errors out.
> What type of content-type do I need to use to be able to send EMBED tags through an
>HTML email in PHP?
Can you show the message body? MIME isn't related to the headers that
directly. Propper syntax of the body of the message is more important, and is
more than likely where your fault lies.
> Please help, I have had no luck with the manual or my archives.
Hope this helps
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php