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:
- require_once('phpmailer/class.phpmailer.php');
-
- $nome = addslashes($_POST['nome']);
- $email = addslashes($_POST['email']);
- $telefone = addslashes($_POST['telefone']);
-
- // Instancia o objeto $mail a partir da Classe PHPMailer
- $mail = new PHPMailer();
- //Recupera dados do formulário.
- $assunto = "";
- $assunto .= "<strong>Contato Site Protons</strong><br />";
- $assunto .= utf8_decode("<strong>Nome:</strong> $nome<br />");
- $assunto .= utf8_decode("<strong>Email:</strong> $email<br />");
- $assunto .= utf8_decode("<strong>Telefone:</strong> $telefone<br />");
- $mail->IsHTML(true);
- //Informa que será utilizado o SMTP para envio do e-mail
-
- $mail->SMTPDebug=2;
-
- $mail->IsSMTP();
- //Informa que a conexão com o SMTP será autênticado
- $mail->SMTPAuth = true;
- // Porta para autenticação smtp;
- $mail->Port = '465';
- //Configuração de HOST do SMTP
- $mail->Host = "smtp.zoho.com"; //Verifique qual o SMTP do seu domínio
- //Usuário para autênticação do SMTP
- $mail->Username = "comercial@vemproconsorciooficial.com.br";
- //Senha para autênticação do SMTP
- $mail->Password = "senha"; //Sua senha do e-mail
- //Titulo do e-mail que será enviado
- $mail->Subject = utf8_decode("Novo LEAD de Imóvel - Vem pro Consórcio.");
-
- //Preenchimento do campo FROM do e-mail
- $mail->From = $mail-> Username;
- $mail->FromName = "Vem pro Consórcio";
-
- //Endereço para a qual o e-mail será enviado
- $mail->AddAddress('comercial@vemproconsorciooficial.com.br');
-
- //Conteúdo do e-mail
- $mail->Body = "<html>
- <head>
- <title>Simulação de Imóvel - Vem pro Consórcio.</title>
- </head>
- <body>
- <font face=\"Arial\" size=\"4\" color=\"#333333\"><br />
- $assunto
- </font>
- </body>
- </html>";
- $mail->AddAttachment($arquivo_caminho, $arquivo_nome);
- $mail->AddEmbeddedImage($arquivo_caminho, $arquivo_caminho, $arquivo_nome, "Content-Transfer-Encoding: 8bits\n", "Content-Type: text/html; charset=\"ISO-8859-1\"\n\n");
- $mail->AltBody = $mail->Body;
-
- //Dispara o e-mail
- $enviado = $mail->Send();
-
- //Imprime sucesso.
- if($enviado)
- //se for enviado direciona para...
- echo "<script>alert('Teremos um prazer imenso em atendê-lo! Nossa equipe entrara em contato o mais breve o possível.');</script>";
- else
- //se der erro volta para...
- echo "<script>alert('Ocorreu um erro!');</script>";
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Open PGP integration with Zoho Mail is now here!
Hello Community, We're in much delight to announce that the long awaited integration of Open PGP with Zoho Mail is now released to users in US, EU, AU and IN DCs. With this integration. you can now send out encrypted and digitally signed emails which
Free Webinar Alert! Transform your digital work experience with Zoho Workplace and Zoho Sign
Hello Community!!! We're excited to announce the free webinar on Transforming your digital work experience with Zoho Workplace apps and Zoho Sign integration! Join us for the webinar! Click here, to register!
Announcing ZUG Australia & New Zealand Meet-ups - Meet, Talk, and Learn from Workplace Experts!
Hello Everyone! Our Workplace experts are visiting the top cities in Australia & New Zealand to meet you all in person and help you boost the productivity of your organisation. Come and meet us at one of the cities listed below - whichever is nearer to
Announcing ZUG New Zealand Meet-ups in Auckland, Wellington & Brisbane - Meet, Talk, and Learn from Workplace Experts!
Hello Everyone! Our Workplace experts are visiting the top cities in New Zealand to meet you all in person and help you boost the productivity of your organisation. Come and meet us at Auckland, Wellington or Christchurch - whichever is nearer to you.
Announcing ZUG Australia Meet-ups in Melbourne, Sydney & Brisbane - Meet, Talk, and Learn from Workplace Experts!
Hello Everyone! Our Workplace experts are visiting the top cities in Australia to meet you all in person and help you boost the productivity of your organisation. Come and meet us at Melbourne, Sydney or Brisbane - whichever is nearer to you. Find our
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
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.