Hey,
I was have a Win2k Pro based box, using IIS and PHP/ASP.
I was trying to get mail sending up & working, and read
about he CDONTS email object available via IIA.
I found this code (ASP)...
(<%
Dim MyBody
Dim MyCDONTSMail
Set MyCDONTSMail = CreateObject("CDONTS.NewMail"
MyCDONTSMail.From= "somebody@nowhere.com"
MyCDONTSMail.To= "nobody@nowhere.com"
MyCDONTSMail.Subject="This is a Test"
MyBody = "Thank you for ordering that stuff" & vbCrLf
MyBody = MyBody & "We appretiate your business" & vbCrLf
MyBody = MyBody & "Your stuff will arrive within 7 business days"
MyCDONTSMail.Body= MyBody
MyCDONTSMail.Send
set MyCDONTSMail=nothing
%>
and then this code (PHP)...
(?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->Subject = "This is a sample subject string";
@$CDONTS->Body = "This is the body of an email, blah blah blah, bleh";
@$CDONTS->AttachFile("c:\file.txt"
;
@$CDONTS->Send();
@$CDONTS->Close();
print "mail sent";
?>
The problem is, when viewing either of the pages, I end
up with 1000+ emails being queued up, and thats after
I recieved over 200 emails.
I usually have to end up rebooting the server (if I stop
it, clear the queue, and restart it, it just queues up
a bunch more).
Any one have a similiar problem? Since it happens when used
with ASP or PHP, it doesnt seem to be the way I am calling
it so much as maybe IIS/CDONTS.
Regards,
Tj
I was have a Win2k Pro based box, using IIS and PHP/ASP.
I was trying to get mail sending up & working, and read
about he CDONTS email object available via IIA.
I found this code (ASP)...
(<%
Dim MyBody
Dim MyCDONTSMail
Set MyCDONTSMail = CreateObject("CDONTS.NewMail"
MyCDONTSMail.From= "somebody@nowhere.com"
MyCDONTSMail.To= "nobody@nowhere.com"
MyCDONTSMail.Subject="This is a Test"
MyBody = "Thank you for ordering that stuff" & vbCrLf
MyBody = MyBody & "We appretiate your business" & vbCrLf
MyBody = MyBody & "Your stuff will arrive within 7 business days"
MyCDONTSMail.Body= MyBody
MyCDONTSMail.Send
set MyCDONTSMail=nothing
%>
and then this code (PHP)...
(?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->Subject = "This is a sample subject string";
@$CDONTS->Body = "This is the body of an email, blah blah blah, bleh";
@$CDONTS->AttachFile("c:\file.txt"
@$CDONTS->Send();
@$CDONTS->Close();
print "mail sent";
?>
The problem is, when viewing either of the pages, I end
up with 1000+ emails being queued up, and thats after
I recieved over 200 emails.
I usually have to end up rebooting the server (if I stop
it, clear the queue, and restart it, it just queues up
a bunch more).
Any one have a similiar problem? Since it happens when used
with ASP or PHP, it doesnt seem to be the way I am calling
it so much as maybe IIS/CDONTS.
Regards,
Tj