Receiving Email with .Net


This is an extremely simple version of getting the CloudMailin HTTP POST parameters (original format) from an application. Any help expanding this example would be greatly appreciated. This example has only been tested in .net version 2.0 which is now a little dated.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
  <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="UTF-8" validateRequest=false %>
  <script language="C#" runat="server">
    void Page_Load(object sender, EventArgs e) {
      String from = Request.Form["from"];
      String plain = Request.Form["plain"];
      String html = Request.Form["html"];

In this example the message parameter is ignored although you could use a mime parsing component to read in the full message if required.