Hallo,
ich habe eine Website auf einem XAMPP-Server laufen. Ich wollte als Mail-Account mein Googlemail-Account verwenden, um Mail-Funktionen unter Contao zu testen (z. B. Kontaktformular). Ich habe die Daten in den Systemeinstellungen eingegeben - mehrfach mit meinem Outlook verglichen. Allerdings erhalte ich von Contao folgende Fehlermeldung:
Die Mail-Funktion von Contao 2.9.5 scheint ein Problem mit SSL-Verbindungen zu haben, oder? Mit dem lokalen Mail-Server von XAMPP funktioniert es. Allerdings gibt es ja auch immer mehr andere Provider, die ihre Konten mit SSL absichern, daher wäre mir eine Lösung wichtig. Kann mir jemand helfen?Code:Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googlemail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Transport\StreamBuffer.php on line 233 #0 [internal function]: __error(2, 'fsockopen() [_establishSocketConnection() #3 C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Transport\AbstractSmtpTransport.php(101): Swift_Transport_StreamBuffer->initialize(Array) #4 C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Mailer.php(74): Swift_Transport_AbstractSmtpTransport->start() #5 C:\xampp\htdocs\contaobuch\system\libraries\Email.php(462): Swift_Mailer->send(Object(Swift_Message), Array) #6 C:\xampp\htdocs\contaobuch\system\modules\frontend\Form.php(389): Email->sendTo(Array) #7 C:\xampp\htdocs\contaobuch\system\modules\frontend\Form.php(208): Form->processFormData(Array) #8 C:\xampp\htdocs\contaobuch\system\modules\frontend\Hybrid.php(163): Form->compile() #9 C:\xampp\htdocs\contaobuch\system\modules\frontend\Form.php(74): Hybrid->generate() #10 C:\xampp\htdocs\contaobuch\system\libraries\Controller.php(415): Form->generate() #11 C:\xampp\htdocs\contaobuch\system\modules\frontend\ModuleArticle.php(173): Controller->getContentElement('27') #12 C:\xampp\htdocs\contaobuch\system\modules\frontend\Module.php(140): ModuleArticle->compile() #13 C:\xampp\htdocs\contaobuch\system\modules\frontend\ModuleArticle.php(71): Module->generate() #14 C:\xampp\htdocs\contaobuch\system\libraries\Controller.php(348): ModuleArticle->generate(false) #15 C:\xampp\htdocs\contaobuch\system\libraries\Controller.php(221): Controller->getArticle('3', false, false, 'main') #16 C:\xampp\htdocs\contaobuch\system\modules\frontend\PageRegular.php(71): Controller->getFrontendModule('0', 'main') #17 C:\xampp\htdocs\contaobuch\index.php(198): PageRegular->generate(Object(DB_Mysql_Result)) #18 C:\xampp\htdocs\contaobuch\index.php(333): Index->run() #19 {main} Fatal error: Uncaught exception Swift_TransportException with message Connection could not be established with host smtp.googlemail.com [Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? #104397568] thrown in C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Transport\StreamBuffer.php on line 235 #0 C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Transport\StreamBuffer.php(70): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Transport\AbstractSmtpTransport.php(101): Swift_Transport_StreamBuffer->initialize(Array) #2 C:\xampp\htdocs\contaobuch\plugins\swiftmailer\classes\Swift\Mailer.php(74): Swift_Transport_AbstractSmtpTransport->start() #3 C:\xampp\htdocs\contaobuch\system\libraries\Email.php(462): Swift_Mailer->send(Object(Swift_Message), Array) #4 C:\xampp\htdocs\contaobuch\system\modules\frontend\Form.php(389): Email->sendTo(Array) #5 C:\xampp\htdocs\contaobuch\system\modules\frontend\Form.php(208): Form->processFormData(Array) #6 C:\xampp\htdocs\contaobuch\system\modules\frontend\Hybrid.php(163): Form->compile() #7 C:\xampp\htdocs\contaobuch\system\modules\frontend\Form.php(74): Hybrid->generate() #8 C:\xampp\htdocs\contaobuch\system\libraries\Controller.php(415): Form->generate() #9 C:\xampp\htdocs\contaobuch\system\modules\frontend\ModuleArticle.php(173): Controller->getContentElement('27') #10 C:\xampp\htdocs\contaobuch\system\modules\frontend\Module.php(140): ModuleArticle->compile() #11 C:\xampp\htdocs\contaobuch\system\modules\frontend\ModuleArticle.php(71): Module->generate() #12 C:\xampp\htdocs\contaobuch\system\libraries\Controller.php(348): ModuleArticle->generate(false) #13 C:\xampp\htdocs\contaobuch\system\libraries\Controller.php(221): Controller->getArticle('3', false, false, 'main') #14 C:\xampp\htdocs\contaobuch\system\modules\frontend\PageRegular.php(71): Controller->getFrontendModule('0', 'main') #15 C:\xampp\htdocs\contaobuch\index.php(198): PageRegular->generate(Object(DB_Mysql_Result)) #16 C:\xampp\htdocs\contaobuch\index.php(333): Index->run() #17 {main}
Gruß
Michael

Zitieren


