Hi, here is my script
<%
On Error resume Next
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail"
If IsObject (MyCDO) Then
MyCDO.From = "mail@mail.com"
MyCDO.To = "myemail@mail.com"
MyCDO.Subject = "Subject of the message"
TBdy = "test"
MyCDO.Body = TBdy
MyCDO.Send
Set MyCDO = nothing
Response.Write("Message sent"
Else
Response.Write("Message not sent"
End If
%>
After the page loads I get the "Message sent" text so I would think it sent the mail but when I check my mailbox...nothing.
Why?
Im running Win2000 with all IIS components installed.
Do I need to configure the SMTP server at all?
<%
On Error resume Next
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail"
If IsObject (MyCDO) Then
MyCDO.From = "mail@mail.com"
MyCDO.To = "myemail@mail.com"
MyCDO.Subject = "Subject of the message"
TBdy = "test"
MyCDO.Body = TBdy
MyCDO.Send
Set MyCDO = nothing
Response.Write("Message sent"
Else
Response.Write("Message not sent"
End If
%>
After the page loads I get the "Message sent" text so I would think it sent the mail but when I check my mailbox...nothing.
Why?
Im running Win2000 with all IIS components installed.
Do I need to configure the SMTP server at all?