SMTP not working with php mailer class

email, php, phpmailer

Solution

have u tried $mail->SMTPSecure='ssl' ? some SMTP servers need this.

Check the error with $mail->ErrorInfo sometime gives a tip.

Problem

I have two accounts: no-reply@weddinggrabs.com no-reply@appovio.com and Incoming POP3: pop.secureserver.net (995) Outgoing SMTP: smtpout.secureserver.net (80, 3535, 25, 465) These work using email clients like Thunderbird, post-box, etc, but not with php-mailer: ``` error_reporting(0); require_once ("class.phpmailer.php");// PHP MAILER FOR SENDING EMAILS $mail = new PHPMailer(); define('EMAIL_HOST','smtpout.secureserver.net'); define('EMAIL_USER','no-reply@weddinggrabs.com'); define('EMAIL_PASSWORD','xxxxxxxx'); $mail->IsSMTP(); $mail->Port = 465; $mail->Host = EMAIL_HOST; $mail->Username = EMAIL_USER; $mail->Password = EMAIL_PASSWORD; $mail->SMTPAuth = true; $mail->FromName = "Administrator"; $mail->From = "Administrator"; $mail->AddAddress($email); $mail->WordWrap = 50; $mail->IsHTML(true); $mail->Subject = "Seating Arrangements on Event"; $mail->Body = "Dear WeddingWire Customer"; if($mail->Send()) return "true"; return "false"; ```

Original source