Guest_imported
New member
- Jan 1, 1970
- 0
i am trying to use the script below to retrieve info put into an html form into an email that gets sent to me....the script below is working and i do get the email when the user inputs the data but i want to add more fields like home address, age, etc.......not just the ones specified in the script ex.fromAddress, subject, bodytext....any suggestions?
<%
Set Mailer = Server.CreateObject ("SMTPsvg.Mailer"
Mailer.FromName = Request.Form ("FromName"
Mailer.FromAddress = Request.Form("FromAddress"
Mailer.Subject = Request.Form ("Subject"
Mailer.BodyText = Request.Form ("Bodytext"
Mailer.RemoteHost = "mail-fwd.verio-web.com"
Mailer.AddRecipient Request.Form("ToName"
, Request.Form("ToAddress"
if Mailer.SendMail then
' Message sent sucessfully
response.write ("Your message was sent"
else
' Message send failure
response.write ("Your message was not sent. "
response.write ("The error was: " & Mailer.Response)
end if
%>
<%
Set Mailer = Server.CreateObject ("SMTPsvg.Mailer"
Mailer.FromName = Request.Form ("FromName"
Mailer.FromAddress = Request.Form("FromAddress"
Mailer.Subject = Request.Form ("Subject"
Mailer.BodyText = Request.Form ("Bodytext"
Mailer.RemoteHost = "mail-fwd.verio-web.com"
Mailer.AddRecipient Request.Form("ToName"
if Mailer.SendMail then
' Message sent sucessfully
response.write ("Your message was sent"
else
' Message send failure
response.write ("Your message was not sent. "
response.write ("The error was: " & Mailer.Response)
end if
%>