Вы можете использовать libmail: http://lwest.free.fr/doc/php/lib/index.php3?page=mail&lang=en
include "libmail.php";
$m = new Mail(); // create the mail
$m->From( $_POST['form'] );
$m->To( $_POST['to'] );
$m->Subject( $_POST['subject'] );
$m->Body( $_POST['body'] );
$m->Cc( $_POST['cc']);
$m->Priority(4);
// attach a file of type image/gif to be displayed in the message if possible
$m->Attach( "/home/leo/toto.gif", "image/gif", "inline" );
$m->Send(); // send the mail
echo "Mail was sent:"
echo $m->Get(); // show the mail source
var doc = new HtmlAgilityPack.HtmlDocument();
doc.Load(...);
var element = doc.DocumentNode
.Element("html")
.Element("body")
.Element("div")
.Element("center");
var trs = element.Element("table").Elements("tr").ToArray();
var array = new string[trs.Length, trs[0].Elements("td").Count()];
for (int row = 0; row < trs.Length; row++)
{
var tds = trs[row].Elements("td").ToArray();
for (int col = 0; col < tds.Length; col++)
{
array[row, col] = tds[col].InnerText;
}
}