We have an ASP mail script running on our server, and all is fine with it.
However, we have been asked by our host to specify somewhere in the code which SMTP server the mail should be sent through.
I know this can be done with ASPmail and ASPemail. Can it be done with CDONTS?
Obviously, if i have to, i will just change the code, but hoped I might be able to add something to my CDONTS before re-writing to ASPemail.
The code i have used is like this:
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.From = "firstname.lastname@example.org"
mail.To = "email pulled from Database"
mail.Subject = "My email subject"
mail.Body = "messaage goes here"