$user=$from="[email protected]" $to="[email protected]" $passwd="[email protected]'s password" require_once 'Mail.php'; $params = array( 'host'=> 'tls://smtp.gmail.com','port'=> 465,'auth'=> true,'debug' => false, 'username' => $user, 'password' => $passwd ); $smtp = Mail::factory('smtp', $params); $smtp->send($to, array('From'=>$from,'To'=>$to), "Hello World!");
# Be Good, Don't be Evil :-)
Cheers,
Mark
3 comments:
ကိုမာခ့္ ေရ မွတ္သား နာယူသြားပါတယ္ :)
Regards,
SOETHI
Thanks 4 Sharing :)
Hi..
Class 'Mail' not found error တက္ေနတယ္
Post a Comment