Hi,
I'm trying to send an email through ASP and CDO, i have the SMTP server setup but its not sending anywhere, does anyone have an idea why?
Here is the code, i know this is correct.
Dim objCDOMail
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"
objCDOMail.From = "Test mail"
objCDOMail.To = "a@b.co.uk"
objCDOMail.Subject = "hi"
objCDOMail.Body = "Test"
objCDOMail.Importance = 2
objCDOMail.MailFormat = 0
objCDOMail.BodyFormat = 0
objCDOMail.Send
Response.Write("Message Should be on its way!!!"
Set objCDOMail = Nothing
I'm trying to send an email through ASP and CDO, i have the SMTP server setup but its not sending anywhere, does anyone have an idea why?
Here is the code, i know this is correct.
Dim objCDOMail
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"
objCDOMail.From = "Test mail"
objCDOMail.To = "a@b.co.uk"
objCDOMail.Subject = "hi"
objCDOMail.Body = "Test"
objCDOMail.Importance = 2
objCDOMail.MailFormat = 0
objCDOMail.BodyFormat = 0
objCDOMail.Send
Response.Write("Message Should be on its way!!!"
Set objCDOMail = Nothing