note 30213 added to ref.mail
| From: | tj at rack1 dot php dot net | Date: | Tue, 11 Mar 2003 02:41:29 +0000 |
| Subject: | note 30213 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45083@lists.php.net to get a copy of this message | ||
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?
--
http://www.php.net/manual/en/ref.mail.php
http://master.php.net/manage/user-notes.php?action=edit+30213
http://master.php.net/manage/user-notes.php?action=delete+30213
http://master.php.net/manage/user-notes.php?action=reject+30213