Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Problem with sending Contact form via Email plugin (SMTP / starttls)

Started by Muut Archive 10 years ago · 4 replies · 1852 views
10 years ago

As described in this github issue (https://github.com/getgrav/grav-plugin-email/issues/23) , i too have the need for starttls as smtp encryption method (on port 587, as demanded by my hoster). But unfortunately the described fix didn't work out for me.

After updating Gravs Swiftmailer to version 5.4 via Composer and manually setting starttls as encryption method in user/config/plugins/email.yaml i still get the following error when trying to submit a contact form:

Connection could not be established with host peacock.uberspace.de [Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP? #32659]

I have no more ideas what to do, could anybody point me in the right direction (i'm running php 7.0.5 if that is of any concern)..

greets & thx from berlin

  • u
10 years ago

Thanks for your input flaviocopes ! It doesn't seem to be linked to the user credentials. I already tried 3 different e-mail accounts with different usernames & passwords. But everytime i try to submit the contact form, I get the same error message as before (Unable to find the socket transport "starttls")...
One thing i'm not sure about - when i'm choosing smtp as my engine, do i still need to set the sendmail-path in user/config/plugins/email.yaml ? Or is smtp / sendmail mutually exclusive ?

10 years ago

No, sendmail is a local (same server) email sending option, while SMTP uses a separate email server, to which you delegate the email sending.

10 years ago

ah yeah, i thought so - thanks! and btw: after a (necessary) git clone of my files, everything seems to be working fine now, in terms of starttls :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1361 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago