Change mailer to use PHPMailer