Posts

Showing posts with the label Fastest way to send mails using phpmailer smtp

Fastest way to send mails using phpmailer smtp?

Basically, it reuses the original object (thus reducing memory allocations). require_once 'PHPMailer/PHPMailerAutoload.php' ; class BatchMailer { var $mail ; function __construct () { $this -> mail = new PHPMailer ; $this -> mail -> isSMTP (); $this -> mail -> Host = 'smtp.example.com;smtp.example.com' ; $this -> mail -> SMTPAuth = true ; $this -> mail -> Username = 'newsletter@example.com' ; $this -> mail -> Password = 'password' ; $this -> mail -> SMTPSecure = 'ssl' ; $this -> mail -> SMTPKeepAlive = true ; $this -> mail -> Port = 465 ; $this -> mail -> From = 'newsletter@example.com' ; $this -> mail -> FromName = 'xyz' ; $this -> mail -> WordWrap = 50 ; $this -> mail -> isHTML ( true ); $this -> mail -...