Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- PHP Mail configuration


dmorison - 7:51 pm on Dec 31, 2012 (gmt 0)


Alternatively the pear/Mail [pear.php.net] library is very easy to use;


$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);


Thread source:: http://www.webmasterworld.com/php/4529562.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com