RE: [PHP] HELP: COM(CDO.Message)(SOLVED!!!)
| From: | Shane | Date: | Tue, 23 Jul 2002 19:36:08 +0000 |
| Subject: | RE: [PHP] HELP: COM(CDO.Message)(SOLVED!!!) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109135@lists.php.net to get a copy of this message | ||
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: php-general@lists.php.net
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 = 'blah@blah.com';
$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