PDA

View Full Version : Do this in asp ?



GregT
October 21st, 2002, 01:17
Im a newbie to asp, so how would i make a script that takes the data from a html page (which is sending the data to mail.asp) and sends the data to a email address ? i have CDONTS installed.

acidmist_mike
October 27th, 2002, 06:20
Try this:

Set objSendmail = Server.CreateObject("CDONTS.NewMail")
objSendmail.To = "name@somehost.com"
objSendmail.From = "Acidmist Network <admin@acidmist.com>"
objSendmail.Subject = "testing"
objSendmail.Body = "message body"
objSendmail.Send
Set objSendMail = Nothing