Hi,
I recently had installed a new copy of Contao v2.11.12 on hosting I use (new website), and I have a major issue with Contact form. Apparently, SMTP is not working. Whatever I change, it constantly refuses to send an email. The error reported is:
PHP Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.****.net [Connection refused #111]' thrown in /var/www/vhosts/****.org/httpdocs/plugins/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 242
I have another website established on same hosting and it works flawlessly, but I don't know what could be an issue here... SMTP settings (user, password, port are okay - I tried it with webmail and my desktop email client).
Any advice?
Thanks.
PS.
#0 …/plugins/swiftmailer/classes/Swift/Transport/StreamBuffer.php(60): Swift_Transport_StreamBuffer->_establishSocketConnection()
#1 …/plugins/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php(109): Swift_Transport_StreamBuffer->initialize(Array)
#2 …/plugins/swiftmailer/classes/Swift/Mailer.php(76): Swift_Transport_AbstractSmtpTransport->start()
#3 …/system/libraries/Email.php(488): Swift_Mailer->send(Object(Swift_Message), Array)
#4 …/system/modules/frontend/Form.php(402): Email->sendTo(Array)
#5 …/system/modules/frontend/Form.php(219): Form->processFormData(Array, Array)
#6 …/system/modules/frontend/Hybrid.php(163): Form->compile()
#7 …/system/modules/frontend/Form.php(74): Hybrid->generate()
#8 …/system/libraries/Controller.php(511): Form->generate()
#9 …/system/modules/frontend/ModuleArticle.php(194): Controller->getContentElement('13')
#10 …/system/modules/frontend/Module.php(140): ModuleArticle->compile()
#11 …/system/modules/frontend/ModuleArticle.php(71): Module->generate()
#12 …/system/libraries/Controller.php(443): ModuleArticle->generate(false)
#13 …/system/libraries/Controller.php(307): Controller->getArticle('18', false, false, 'main')
#14 …/system/modules/frontend/PageRegular.php(100): Controller->getFrontendModule('0', 'main')
#15 …/index.php(266): PageRegular->generate(Object(DB_Mysqli_Result))
#16 …/index.php(401): Index->run()
#17 {main}
Bookmarks