Tiernan OToole has written a great tutorial on getting started with Email2HTTP in ASP.NET.
Here's a code snippet from his tutorial:
public void ProcessRequest (HttpContext context) {
string subject = "";
string body = "";
context.Response.Write(context.Request.Form.Keys.Count);
context.Response.Write("<br>");
subject = context.Request.Form.Get("subject");
body = context.Request.Form.Get("body");
context.Response.Write(s);
context.Response.Write("<br>");
context.Response.Write("Body: " + body);
context.Response.Write("<br>");
context.Response.Write("Subject: " + subject);
}
Click here to read the full article.
Last updated Feb 11 2008