Olá pessoal,
Estou tentando enviar um e-mail a partir de um formulário, da seguinte forma:
sc_mail_send({Email_SMTP}, {Email_Usuario}, {Usuario_Senha}, {Usuario_Email}, {Email_Destino}, {Email_Assunto}, {Email_Mensagem}, "H", "", "", {Email_Porta}, {Email_Conexao}, "");if ({sc_mail_ok})
{
echo “Enviados {sc_mail_count} e-mail com sucesso !!”;
}
else
{
sc_error_message({sc_mail_erro});
};
Só que está me retornando o seguinte erro:
Fatal error: Uncaught exception 'Swift_TransportException' with message 'Failed to authenticate on SMTP server with username "ilano@mdierp.com.br" using 2 possible authenticators' in /home/mdierpco/public_html/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php:181 Stack trace: #0 /home/mdierpco/public_html/scriptcase/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(333): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport)) #1 /home/mdierpco/public_html/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(118): Swift_Transport_EsmtpTransport->_doHeloCommand() #2 /home/mdierpco/public_html/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /home/mdierpco/public_html/scriptcase/app/contato/CadEmails/CadEmails_apl.php(1422): Swift_Mailer->send(Object(Swift_Message), Array) #4 /home/mdierpco/public_html/scriptcase/app/contato/CadEmails/CadEmails_apl.php(1006): CadEmails_apl->sc_btn_BtnTestaEm in /home/mdierpco/public_html/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php on line 181
Como posso corrigir isso?
Grato,
Ilano.