Open link in a new tab

Content

Expand project menu

[solved]Email notification problem -> Gmail settings?

Hi!

I once again seem to be unable to setup the email/smtp in openproject. I configured the email settings like this

EMAIL_DELIVERY_METHOD="smtp"
ADMIN_EMAIL="foo@bar.com"
SMTP_AUTHENTICATION="login"
SMTP_HOST="smtp.gmail.com"
SMTP_PORT="465"
SMTP_USERNAME="foobar@gmail.com"
SMTP_PASSWORD="crazypassword"
SMTP_DOMAIN="gmail.com"
SMTP_URL="smtp://foobar%40gmail.com:foobar@smtp.gmail.com:465/gmail.com"

When I send a test email I get following error

An error occurred while sending mail (end of file reached)

What does this error mean and how to solved it. Any help/suggestions are appreciated.

Cheers!

Message actions

Ah, Nailed it!

I had to enable STARTTLS

openproject config:set SMTP_ENABLE_STARTTLS_AUTO=true

Not sure if it’s needed but I reconfigured openproject via command, now emails get send.

Would be nice if the settings (use -> STARTTLS) could be set while (re)configuring openproject.

Cheers!

PS: I also have change the port to 587

Message actions

Hey Bernd,

thanks for the followup. I’ve taken note and we will improve the documentation for Gmail setups and extend the smtp addon to ask for TLS.

Best,
Oliver