Hello,
When using the sc_mail_send macro on my local server, everything works without complications, but I export the project and use it in the production environment it throws an error and does not send, which could be happening, the error in theory is by port, I am using gmail smtp, when using port 465 everything works fine, but only on my local server, not on the production server, will it be a permission problem? I don’t think the port is a problem because it works in scriptcase in a test environment, but in deployed it doesn’t work.
My test environment is windows from scriptcase, the production environment is a hosting with linux 64bits
the generated error is:
Fatal error : Uncaught Swift_TransportException: Connection could not be established with host smtp.gmail.com [ #0] in /home/grupobot/public_html/inadimplencia/_lib/prod/third/swift/classes/Swift/Transport/StreamBuffer.php:269 Stack trace: #0 /home/grupobot/public_html/inadimplencia/_lib/prod/third/swift/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /home/grupobot/public_html/inadimplencia/_lib/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array) #2 /home/grupobot/public_html/inadimplencia/ lib/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /home/grupobot/public_html/inadimplencia/form_sac/form_sac_apl.php(4237): Swift_Mailer->send(Object(Swift_Message), Array) #4 /home/grupobot/public_html/inadimplencia/form_sac/form_sac_apl.php(1307): form_sac_apl->nm_acessa_banco() #5 /home/grupobot/public_html/inadimplencia/form_sac/index.php(2251): form_sac in /home/grupobot/public_html/inadimplencia/_lib/prod/third/swift/classes/Swift/Transport/StreamBuffer.php on line 269