Below is an already working code in classic ASP to send an email. Can we implement SMTP authentication to this code?
I have implemented using CDO, but would like to know if we can implement SMTP authentication for CDONTS. Please see my code below:
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.to = "[email protected]"
objCDO.From = "[email protected]" 'CustEmail
objCDO.Subject = "Test Subject"
objCDO.BodyFormat = 0
objCDO.MailFormat = 0
objCDO.Body = "This is a test message"
objCDO.Importance = 0 'High importance!
objCDO.Send 'Send off the email!
'Cleanup
Set objCDO = Nothing
ReplySent="Email sent!"
Response.write(ReplySent)
Response.End