English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to create a form where my coworkers can fill out in html and have asp code to send it to me. I need some code on both the client and server side of things. Thanks

2007-03-21 06:58:54 · 1 answers · asked by SigEpShawn 2 in Computers & Internet Programming & Design

1 answers

ASPMail must be installed: (it's just an example!)
<%
Set Mailer = Server.CreateObject ("SMTPsvg.Mailer")
Mailer.FromName = "Joe's Widgets Corp."
Mailer.FromAddress = "sales@joeswidgets.com"
Mailer.Subject = "Your Widget Order"
Mailer.BodyText = "Your order was processed."
Mailer.RemoteHost = "outbound-relay.biz.rr.com"

Mailer.AddRecipient "John Smith", "jsmith@someisp.com"

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
%>

2007-03-21 08:43:51 · answer #1 · answered by Maysam 4 · 0 0

fedest.com, questions and answers