Forum Moderators: coopster
$from = "you@example.com";
$to = "them@example.com";
$subject = "Testing";
$body = "Hello";
//
$smtpinfo = array();
$smtpinfo["host"] = "<ip or host of your LAN mail server>";
$headers = array ('From' => $from,'To' => $to,'Subject' => $subject);
$smtp = &Mail::factory('smtp', $smtpinfo );
$smtp->send($to, $headers, $body);