Forum Moderators: coopster
require_once("Mail.php");
$mail = Mail::factory("mail");
$headers = array("From"=>"someFromAddress@example.com", "Subject"=>"Test Mail");
$body = "This is a test!";
$mail->send("recipient@example.com", $headers, $body);
var_dump($mail);
echo("test");
here is the output I get so I know it's kind of working
object(Mail_mail)#1 (2) { ["_params"]=> string(0) "" ["sep"]=> string(2) " " } test
I am not an object oriented programmer so I don't really know what is going on but I am not getting an e-mail. My server in the php.ini file is localhost and there is no password or username for it. It is set to go out on port 25. Any help? Thanks,