I’m really struggling with setting up our freeflaurm account https://wmbanjonet.flarum.cloud/ to use smtp with gmail for sending out notifications. Hoping someone can spot what I’m doing wrong! I’ve been using just the mail driver up until now, but notifications are going to users’ spam folders, so any possible discussions keep “dying on the vine.”
I’ve read through many support discussions and have tried various recommendations. But whenever I try sending a test email, about a half minute goes by then I get the “Oops Something went wrong” message and a “connection could not be established” error in our logs.
Two examples of settings and errors are below. In each case, I’m using the app password generated by gmail. After creating the app password, I checked gmail’s security notifications and confirmed that it was me that created the password. I then copied and pasted the app password into the flarum email settings along with the other settings shown below. (I also removed the spaces because gmail presents it like “abcd efgh ijkl mnop”).
Using port 587 and tls encryption….
Addresses: wmbanjonet@gmail.com
Choose a Driver: smtp
SMTP Settings
Host: smtp.gmail.com
Port: 587
Encryption: tls
Username: wmbanjonet@gmail.com
Error log:
flarum.ERROR: Swift_TransportException: Connection could not be established with host smtp.gmail.com :stream_socket_client(): Unable to connect to tcp://smtp.gmail.com:587 (Connection timed out) in /data/host/skeleton/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261
Using port 465 and ssl encryption….
Addresses: wmbanjonet@gmail.com
Choose a Driver: smtp
SMTP Settings
Host: smtp.gmail.com
Port: 465
Encryption: ssl
Username: wmbanjonet@gmail.com
Error log:
flarum.ERROR: Swift_TransportException: Connection could not be established with host smtp.gmail.com :stream_socket_client(): Unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) in /data/host/skeleton/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261
Can you see what I’m doing wrong, or recommend something else to try?
Thanks!