estou tendo esse erro ao usar a função sc_mail_send, a extensão openssl está habilitada no php.
o scriptcase está instalado em um ubuntu 14.0.4 e o servidor de e-mail que recebera as mensagens é um microsoft exchange server 2010
código da aplicação:
$mail_smtp_server = ‘192.168.0.45’; // SMTP server name or IP address
$mail_smtp_user = ‘xxx’; // SMTP user name
$mail_smtp_pass = ‘xxx’; // SMTP password
$mail_from = $email; // From email
$mail_to = ‘yyyyy’; // To email
$mail_message = $param_message;
$mail_subject = {lang_subject_mail}; // Message body
$mail_format = ‘H’; // Message format: (T)ext or (H)tml
// Send email
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,’’,’’, ‘587’,‘S’);
if ({sc_mail_ok})
{
sc_alert({lang_mail_sended_ok} );
}
else
{
sc_erro_mensagem({sc_mail_erro});
}
erro ao enviar o e-mail
Fatal error: Uncaught exception ‘Swift_TransportException’ with message ‘Failed to authenticate on SMTP server with username “userx” using 0 possible authenticators’ in /var/www/html/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php:176 Stack trace: #0 /var/www/html/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(307): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport)) #1 /var/www/html/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(124): Swift_Transport_EsmtpTransport->_doHeloCommand() #2 /var/www/html/wwwroot/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /var/www/html/wwwroot/scriptcase/app/MoodleMPSC/app_retrieve_pswd/app_retrieve_pswd_apl.php(1439): Swift_Mailer->send(Object(Swift_Message), Array) #4 /var/www/html/wwwroot/scriptcase/app/MoodleMPSC/app_retrieve_pswd/app_retrieve_pswd_apl.php(965): app_retrieve_pswd_apl->Valida_campos(NU in /var/www/html/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php on line 176
obs: o scriotcase está na última versão.
Agradeço desde já a juda.