**Ao tentar usar a macro sc_mail_send, da esse erro. script usado:
$mail_smtp_server = ‘smtp.gmail.com’; // SMTP server name or IP address
$mail_smtp_user = ‘mail@mail.com.br’; // SMTP user name
$mail_smtp_pass = ‘pass’; // SMTP password
$mail_from = ‘mail@mail.com.br’; // From email
$mail_to = ‘mail@mail.com.br’; // To email
$mail_message = ‘teste’; // Message body
$mail_subject = ‘teste 2’; // Subject
$mail_format = ‘T’; // Message format: (T)ext or (H)tml
// Send email
$rs = sc_mail_send(
$mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
‘’,’’, ‘465’, ‘S’);
**
Uncaught Swift_TransportException: Connection could not be established with host smtp.gmail.com [ #0] -/classes/Swift/Transport/StreamBuffer.php:269 Stack trace: #0 -/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 -/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array) #2 -/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 -/blank_teste/index.php(2366): Swift_Mailer->send(Object(Swift_Message), Array) #4 -/blank_teste/index.php(2734): blank_teste_apl->controle() #5 {main} thrown in -/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php on line 269