Pessoal.
Estou tomando esse erro ao tentar enviar msg através da macro sc_mail_send.
Fatal error: Uncaught Swift_TransportException: Connection to mail.verdegestaoambiental.com.br:465 Timed Out in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\swift\classes\Swift\Transport\AbstractSmtpTransport.php:404 Stack trace: #0 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\swift\classes\Swift\Transport\AbstractSmtpTransport.php(289): Swift_Transport_AbstractSmtpTransport->_getFullResponse(0) #1 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\swift\classes\Swift\Transport\AbstractSmtpTransport.php(117): Swift_Transport_AbstractSmtpTransport->_readGreeting() #2 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\RTCM_ECM_VERDE_COM\grid_TB_DOCTO_COM\index.php(1456): Swift_Mailer->send(Object(Swift_Message), Array) #4 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\RTCM_ECM_VERDE_COM\grid_TB_DOCTO_COM\index.php(713): grid_TB_DOCTO_COM_ini->fun in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\third\swift\classes\Swift\Transport\AbstractSmtpTransport.php on line 404
$mail_smtp_server = ‘mail.verdegestaoambiental.com.br’; // SMTP server name or IP address
$mail_smtp_user = ‘ecm@verdegestaoambiental.com.br’; // SMTP user name
$mail_smtp_pass = ‘123456’; // SMTP password
$mail_from = ‘ecm@verdegestaoambiental.com.br’; // From email
$mail_to = ‘comercial@gmail.com’; // To email
$mail_message = $mensagem; // Message body
$mail_subject = ‘RELACAO DE DOCUMENTOS VENCIDOS !’;
$mail_format = ‘H’;
$copiar_para = ‘’;
$tipo_copia = ‘’;
$tipo_porta = ‘465’;
$tipo_coneccao = ‘S’;
$anexo_email = ‘’;
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
$copiar_para,
$tipo_copia,
$tipo_porta,
$tipo_coneccao
$anexo_email);
Entretanto esta é a mesma “configuração” que fiz no Gmail e no Outlook, e funciona perfeitamente.
Alguém passou por esse erro, ou poderia me dar uma orientação? Não consigo entender. A senha (original) está super correta.
Um grande abraço.