note 30213 deleted from ref.mail by didou
| From: | didou@php.net | Date: | Sun, 07 Dec 2003 02:30:19 +0000 |
| Subject: | note 30213 deleted from ref.mail by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61522@lists.php.net to get a copy of this message | ||
Note Submitter: tj
----
Using IIS's CDONTS
------------------------------------------
I found a link here...
http://www.devhome.org/modules.php?name=Content&pa=showpage&pid=6
...which shows how to utilize the CDONTS COM
object when running PHP under IIS.
<?php
@$CDONTS = new COM("CDONTS.NewMail");
@$CDONTS->From = "from_user@domain.com";
@$CDONTS->To = "to_user@domain.com";
@$CDONTS->CC = "cc_user@domain.com";
@$CDONTS->BCC = "bcc_user@domain.com";
@$CDONTS->BodyFormat = 0;
@$CDONTS->MailFormat = 0;
//@$CDONTS->AttachFile("c:\file.txt");
@$CDONTS->Subject = "Using CDONTS with PHP4 and IIS";
@$CDONTS->Body = "Blah blah blah blah, bleh...";
@$CDONTS->Send();
@$CDONTS->Close();
print "Mail sent";
?>
The only problem is (and this is where I am hoping
to get some input from others) when I run this code,
it received over 200 emails, and there were still
another 1000+ emails queued on the server (and that
was just when I was finally able to kill it).
Anyone have any explainations, or better examples?