Sending emails through SMTP with PHPMailer

MechelleRaquel

New Member
I'm trying to send SMTP e-mails using PHPMailer, but I keep getting this error message, any ideas how to get rid of it?
I'm trying to connect via SSL on port 465.\[code\]SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: Notice: fputs() [function.fputs]: send of 18 bytes failed with errno=32 Roura p?eru?ena (SIGPIPE) in /home/www/amazonek.cz/subdomains/library/PHPMailer_v5.1/class.smtp.php on line 494SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: Notice: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Roura p?eru?ena (SIGPIPE) in /home/www/amazonek.cz/subdomains/library/PHPMailer_v5.1/class.smtp.php on line 212SMTP -> ERROR: AUTH not accepted from server: SMTP Error: Could not authenticate.\[/code\]My code:\[code\] require_once('../library/PHPMailer_v5.1/class.phpmailer.php'); try{ $mail = new PHPMailer(true); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = SMTP_SERVER; $mail->Port = SMTP_PORT; $mail->Username = SMTP_USERNAME; $mail->Password = SMTP_PASSWORD; $mail->SMTPDebug = 2; $mail->SetFrom(MAIL_ORDERS_ADDRESS, MAIL_ORDERS_NAME); $mail->Subject = 'AMAZONEK.cz - objedn
 
Back
Top