PHP Mailer Class
July 22nd, 2008
I got this mailer from PHP Classes. Now i want to share it with you.
If you use simple PHP mail() method, most e-mails will go to spam folder. Use this mailer class as the solution.
Usage :
<?php
$global_php_mailer = new PHPMailer();
$global_php_mailer->From = 'admin@webkamu.com';
$global_php_mailer->FromName = 'Web Kamu.com';
$global_php_mailer->AddAddress($to);// to
$global_php_mailer->AddReplyTo('admin@webkamu.com','Terserah, web kamu');
$global_php_mailer->WordWrap = 50;
$global_php_mailer->IsHTML(true);
$global_php_mailer->Subject = $subject;// subject
$global_php_mailer->Body = $message;// message
$global_php_mailer->AltBody = $message;// message
$global_php_mailer->Send();
?>
Kudos to the original creator. Here’s the download link.


Recent Comments