Code Comments
Programming Forum and web based access to our favorite programming groups.Hi All,
I have this problem when try to send a mail by Using
CDO.Message. I got the info from the web, said it may the problem where, the
IIS SMTP setup incorrectly.
My question is How i can know my SMTP was setup correctly? And
how to test it? I did see all the "mailroot" folder did appear in my
"inetpub" folder. And Inside the "mailroot" folder do have all the
subfolders ( which is badmail, drop and etc..).
Please help. Thanks.
<%
Dim MyMail
Set MyMail = Server.CreateObject("CDO.Message")
MyMail.From = "justme@myaddress.com"
MyMail.To = "ck.ng@desit.net"
MyMail.Cc = "friend3@address3.com;friend4@address4.com"
MyMail.Bcc = "friend5@address5.com;friend6@address6.com"
MyMail.Subject = "Sending Mail via CDOSYS for Windows 2000/XP"
MyMail.TextBody = "Sending email with CDOSYS Message " & "objects is easy!
Try it!"
MyMail.Fields.Update()
MyMail.Send()
Set MyMail = Nothing
%>
Regards.
C.K.
Post Follow-up to this messageYou don't have quite enough code there to utilize CDO.Message (this looks like CDONTS.NewMail with a swapped-out ProgID). http://www.aspfaq.com/2026 -- http://www.aspfaq.com/ (Reverse address to reply.) "CK" <cikare@yahoo.com> wrote in message news:#oFf9KMvEHA.1976@TK2MSFTNGP09.phx.gbl... > Hi All, > I have this problem when try to send a mail by Using > CDO.Message. I got the info from the web, said it may the problem where, the > IIS SMTP setup incorrectly. > My question is How i can know my SMTP was setup correctly? And > how to test it? I did see all the "mailroot" folder did appear in my > "inetpub" folder. And Inside the "mailroot" folder do have all the > subfolders ( which is badmail, drop and etc..). > > Please help. Thanks. > <% > Dim MyMail > Set MyMail = Server.CreateObject("CDO.Message") > MyMail.From = "justme@myaddress.com" > MyMail.To = "ck.ng@desit.net" > MyMail.Cc = "friend3@address3.com;friend4@address4.com" > MyMail.Bcc = "friend5@address5.com;friend6@address6.com" > MyMail.Subject = "Sending Mail via CDOSYS for Windows 2000/XP" > MyMail.TextBody = "Sending email with CDOSYS Message " & "objects is easy! > Try it!" > MyMail.Fields.Update() > MyMail.Send() > Set MyMail = Nothing > %> > > Regards. > C.K. > >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.