%
posted = request.form ("submit")
if posted = "Submit" then
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' Customize the following 5 lines with your own information. ''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
vtoaddress = "kids@therapystation.com" ' Change this to the email address you will be receiving your notices.
vmailhost = "mail.therapystation.com" ' Change this to your actual Domain name.
vfromaddress = "Kids@therapystation.com" ' Change this to the email address you will use to send and authenticate with.
vfrompwd = "1209" ' Change this to the above email addresses password.
vsubject = "ASP Contact Form" 'Change this to your own email message subject.
'''''''''''''''''''''''''''''''''''''''''''
'' DO NOT CHANGE ANYTHING PAST THIS LINE ''
'''''''''''''''''''''''''''''''''''''''''''
vfromname = request.form ("TName")
vbody = request.form ("TBody")
vrplyto = request.form ("TEmail")
vmsgbody = vfromname &"
"& vrplyto &"
"& vbody
Set objEmail = Server.CreateObject("Persits.MailSender")
objEmail.Username = vfromaddress
objEmail.Password = vfrompwd
objEmail.Host = vmailhost
objEmail.From = vfromaddress
objEmail.AddAddress vtoaddress
objEmail.Subject = vsubject
objEmail.Body = vmsgbody
objEmail.IsHTML = True
objEmail.Send
vErr = Err.Description
if vErr <> "" then
response.write vErr & "
There was an error on this page."
else
response.write "Thank you, your message has been sent."
End If
Set objEmail = Nothing
end if
%>
|
|
| |||||||||||||||||||||||||||
|
Copyright © 1999 Therapy Station. All rights reserved. Revised: April 16, 2011 . |