Jump to content

mail in asp and under xp


kastellu
 Share

Recommended Posts

O.K. thanks, but how do i tell the page where my form is to send it over this code. I have found bunch of this codes , where only xode for sendmail is , but newer how to set form. When i use this codes , nothing happens,... So how set the par with form if you have code like this:

<%Dim sMsg Dim sTo Dim sFrom Dim sSubject Dim sTextBody sTo = "recipient@maildomain.com"sFrom = "fromaddress@maildomain.com"sSubject = "Insert here your subject text"sTextBody = "Insert here your plain body text"Dim objMail'Create the mail object Set objMail = Server.CreateObject("CDO.Message")'Set key properties objMail.From = sFrom objMail.To = sTo objMail.Subject= sSubject objMail.TextBody = sTextBody 'Send the email objMail.Send 'Clean-up mail objectSet objMail = Nothing%>

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...