[thelist] ASP.net question (forms)
Tom Dell'Aringa
pixelmech at yahoo.com
Fri Mar 4 14:00:02 CST 2005
Hi everyone,
I suddenly inherited an ASP.net issue, I have to send a simple e-mail with the contents of a
feedback form. I already have a script that works to send the e-mail. I am using this:
---------------------------------------------
<% @Page Language="C#" Debug="true" %>
<% @Import Namespace="System.Web.Mail" %>
<%
MailMessage msgMail = new MailMessage();
msgMail.To = "tom at asdf.com";
msgMail.From = "no-reply at asdf.com";
msgMail.Subject = "eHandbook Feedback";
msgMail.BodyFormat = MailFormat.Html;
string strBody = "<html><body><h2>eHandbook Feedback</h2>" +
"<p>Comments:</p>" +
"</body></html>";
msgMail.Body = strBody;
SmtpMail.Send(msgMail);
Response.Write("Email was queued to disk");
%>
----------------------
This works, but I need to hitch up the actual form data, which consists right now of simply a text
field and a textarea. The form posts to this script. I just need to grab the input data and pass
it along to the script so I can send it in the email.
I have some old ASP stuff but I don't know how to handle this with ASP.net. Can someone clue me
in, or even just point me to a good tutorial?
Thanks
Tom
http://www.pixelmech.com/
Melissa: Ace, Where are you?
Ace Ventura: I'm in Psychoville and Finkle's the Mayor.
More information about the thelist
mailing list