Placing the line
$message->TEXTBody = "This is my plain Text Body!"
AFTER your HTMLBody tag did the trick.

Try it out!!!! Solved my own problem, but I hope this helps someone else out.

-----Original Message-----
From: Shane 
Sent: Tuesday, July 23, 2002 12:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HELP: COM(CDO.Message)HTML vs TEXT


Greetings PHPers. For those of you with MS COM experience or those who want to know 
how to send a MULTI MIME type message read on.

I'm trying to find out the syntax for sending an HTMLbody and TEXTbody in the same 
message thus making it a TRUE MULTI message. (see code)

This is what I have... what am I doing wrong??? Any Clues?

$message = new COM('CDO.Message');
$message->To = $myList[$i];
$message->From = '[EMAIL PROTECTED]';
$message->Subject 'My Subject Line';
$message->TEXTBody = "This is my plain Text Body!"
$message->HTMLBody = "<html>HTML STRING HERE</html>";
$message->Send();

Do I need to declare the HTML body first?
Do I have to set the AutoGeneratedTextBody property to false?
Commenting out the TEXTBody line sends a auto generated text body by default, but I 
was hoping to be able to customize my TEXTBody with a bit more control.

Your comments are always GREATLY appreciated.
Thanks gang!
- NorthBayShane

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to