<?php $mail = new PHPMailer; $mail->isSMTP();// $mail->Host = $smtpHost;//smpt.domain.com $mail->Port = $smtpPort;//usually 25 $mail->SMTPKeepAlive = true; //set other values here! $mail->send();//multiple times!? $mail->SmtpClose(); ?>