In PHP, there is the Mail function which lets you send a mail through a script. Is it possible to do the same type of thing with ASP, or will it take a lot of self-written code?
Printable View
In PHP, there is the Mail function which lets you send a mail through a script. Is it possible to do the same type of thing with ASP, or will it take a lot of self-written code?
You have to write some code, but not a lot.
Check this site 4GuysFromRolla.com
try this. make sure the SMTP server is set up if your running it localy though.Code:Dim myMail
Set myMail = Server.CreateObject ("CDONTS.NewMail")
myMail.From = "Me"
myMail.To = "[email protected]"
myMail.Subject = "dunno?"
myMail.Body = "Hello"
myMail.Send
You must have an e-mail component installed though, e.g in the example John gave you, you must have CDONTS installed.