Could not access file: SMTP Error: Could not authenticate. zoho

Could not access file: SMTP Error: Could not authenticate. zoho

Good evening! Can you help me resolve this error? I am using phpmailer and it is returning me error or error log is below!

Log:
Could not access file: SMTP -> FROM SERVER:CLIENT -> SMTP: EHLO imovel.vemproconsorciooficial.com.br SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: CLIENT -> SMTP: HELO imovel.vemproconsorciooficial.com.br SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: CLIENT -> SMTP: AUTH LOGIN SMTP -> ERROR: AUTH not accepted from server: SMTP -> NOTICE: EOF caught while checking if connectedSMTP Connect() failed.

php script used:
  1. require_once('phpmailer/class.phpmailer.php');
  2. $nome = addslashes($_POST['nome']);
  3. $email = addslashes($_POST['email']);
  4. $telefone = addslashes($_POST['telefone']);
  5.  
  6. // Instancia o objeto $mail a partir da Classe PHPMailer
  7. $mail = new PHPMailer();

  8. //Recupera dados do formulário.
  9. $assunto = "";
  10. $assunto .= "<strong>Contato Site Protons</strong><br />";
  11. $assunto .= utf8_decode("<strong>Nome:</strong> $nome<br />");
  12. $assunto .= utf8_decode("<strong>Email:</strong> $email<br />");
  13. $assunto .= utf8_decode("<strong>Telefone:</strong> $telefone<br />");

  14. $mail->IsHTML(true);
  15. //Informa que será utilizado o SMTP para envio do e-mail
  16. $mail->SMTPDebug=2;
  17. $mail->IsSMTP();
  18. //Informa que a conexão com o SMTP será autênticado
  19. $mail->SMTPAuth = true;
  20. // Porta para autenticação smtp;
  21. $mail->Port = '465';
  22. //Configuração de HOST do SMTP
  23. $mail->Host = "smtp.zoho.com"; //Verifique qual o SMTP do seu domínio
  24. //Usuário para autênticação do SMTP
  25. $mail->Username = "comercial@vemproconsorciooficial.com.br";
  26. //Senha para autênticação do SMTP
  27. $mail->Password =   "senha"; //Sua senha do e-mail
  28. //Titulo do e-mail que será enviado
  29. $mail->Subject  = utf8_decode("Novo LEAD de Imóvel - Vem pro Consórcio.");
  30. //Preenchimento do campo FROM do e-mail
  31. $mail->From = $mail-> Username;
  32. $mail->FromName = "Vem pro Consórcio";
  33. //Endereço para a qual o e-mail será enviado
  34. $mail->AddAddress('comercial@vemproconsorciooficial.com.br');
  35. //Conteúdo do e-mail
  36. $mail->Body = "<html>
  37. <head>
  38. <title>Simulação de Imóvel - Vem pro Consórcio.</title>
  39. </head>
  40. <body>
  41. <font face=\"Arial\" size=\"4\" color=\"#333333\"><br />
  42. $assunto
  43. </font>
  44. </body>
  45. </html>";
  46. $mail->AddAttachment($arquivo_caminho, $arquivo_nome);
  47. $mail->AddEmbeddedImage($arquivo_caminho, $arquivo_caminho, $arquivo_nome, "Content-Transfer-Encoding: 8bits\n", "Content-Type: text/html; charset=\"ISO-8859-1\"\n\n");
  48. $mail->AltBody = $mail->Body;
  49. //Dispara o e-mail
  50. $enviado = $mail->Send();
  51. //Imprime sucesso.
  52. if($enviado) 
  53. //se for enviado direciona para...
  54. echo "<script>alert('Teremos um prazer imenso em atendê-lo! Nossa equipe entrara em contato o mais breve o possível.');</script>";
  55. else 
  56. //se der erro volta para...
  57. echo "<script>alert('Ocorreu um erro!');</script>";

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner

                        • Word of the Day

                          Word of the Day


                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner

                        • Word of the Day

                          Word of the Day



                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方