Closed gewerbeschule closed 8 years ago
Are you sending emails from localhost?
If so, Swiftmailer (user by this plugin) does not support self-signed certificates yet: https://github.com/swiftmailer/swiftmailer/issues/571
Related: https://github.com/getgrav/grav-plugin-email/issues/23
I am sending the emails from my Webhosting. server 1and1. So it is not from localhost. Thanks for your help.
With mailtrap the same configuration works fine, but as soon as you switch smtp server it does not work any more?
Yes it is like this. Can I post a log or do you have another sample configuration which works fine?
No actually I don't have an exact answer for this. It works with one, so it should work with the others too, unless it's some underlying problem with the SSL certificate that prevents it to talk correctly to the live SMTP server
How can I check this with the ssl certificate? Really thanks for your help.
Solution for the problem: Change the engine in email.yaml from "smtp" to "mail" and it works fine.
By setting "mail" you're using the PHP mail() functionality, not using the SMTP email sending - might work just fine in your case (on some servers it does not work), just be aware that it's not using your SMTP server.
If so, Swiftmailer (user by this plugin) does not support self-signed certificates yet: swiftmailer/swiftmailer#571
Related: #23
Any work around for this? I'm on a mac using mailtrap smtp. Was hoping to test before I resort to testing on production.
Edit: I did ssh into dreamhost and ran the test. It did work. I guess I'll just go for it :)
When I test the plugin with mailtrap.io everything works fine. The configuration in user/config/plugin/email.yaml ist as follows:
When I change the configuration to:
I get the following error: 0 - Connection could not be established with host smtp.1und1.de [Connection timed out #110] Log data: ++ Starting Swift_SmtpTransport !! Connection could not be established with host smtp.1und1.de [Connection timed out #110](code: 0)
I tested all combinations of ports and encryptions and also with gmail smtp-server. Any help is appreciated.