Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO Mail Setup

Status
Not open for further replies.

mousematt

MIS
Feb 5, 2001
102
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top