Could you show me a little more of an example with a small form?
Like a form with:
Name
Address
city
state
submit
Thanx - Tsrom
Main Topics
Browse All TopicsI wonder if anyone could help me to understand how I would send the data from a html form to an email address.
Let's say that i want to send the form's data that a user types in the form's input to an email addess how do you do it?
I know that you may use an ISAPI to redirect the request but how do you send the requested data to an email.
I hope someone helps me, I just do not get it.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
string sName = Request.Form("Name");
string sAddress = Request.Form("Address");
string scity = Request.Form("city");
string sstate = Request.Form("state");
string sHTML = "<html><head></head<body><
System.Web.Mail.MailMessag
MailMessage.To = "emailto@hotmail.com";
MailMessage.From = "emailfrom@hotmail.com";
MailMessage.Body = sHTML ;
MailMessage.Subject= "Basic info from form";
Msg.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = Request.ServerVariables["L
System.Web.Mail.SmtpMail.S
Business Accounts
Answer for Membership
by: alain123Posted on 2004-03-09 at 12:28:12ID: 10554257
put eveything inside variables and build your html there.
rent.Reque st;
========== ========== ========== ========== " + Environment.NewLine; ========== ========== ========== ========== " + "\r\n";
---------- ---------- -" + Environment.NewLine;
nd of Error Message ========================== =======" + Environment.NewLine;
== send email ========================== ========== //
e MailMessage = new System.Web.Mail.MailMessag e();
tring() + " UTC \n" + Environment.NewLine + ErrorMessage; tring() + " - " + TicketID;
OCAL_ADDR" ];
end(MailMe ssage); //send email ==
e.g
System.Web.HttpRequest Request = System.Web.HttpContext.Cur
ErrorMessage = "=========================
ErrorMessage += " " + "\r\n";
ErrorMessage += "=========================
ErrorMessage += "" + Environment.NewLine;
ErrorMessage += "There is a problem with the page that has been requested and it" + "\r\n";
ErrorMessage += "cannot be displayed." + Environment.NewLine;
ErrorMessage += "" + Environment.NewLine;
ErrorMessage += "HTTP 500.100 - Internal Server Error - ASP .NET error" + Environment.NewLine;
ErrorMessage += "" + Environment.NewLine;
ErrorMessage += "Technical Information (for support personnel):" + Environment.NewLine;
ErrorMessage += "-------------------------
ErrorMessage += Environment.NewLine + "========================E
//========================
System.Web.Mail.MailMessag
MailMessage.To = "emailto";
MailMessage.From = "emailfrom";
MailMessage.Body = "Error in appat " + System.DateTime.UtcNow.ToS
MailMessage.Subject= "System Message Alert " + System.DateTime.UtcNow.ToS
//Msg.Body += "On server " + Server.MachineName +"\n\n";
//Msg.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = Request.ServerVariables["L
System.Web.Mail.SmtpMail.S