Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. [solved]Email notification problem -> Gmail settings?

[solved]Email notification problem -> Gmail settings?

Added by Bernd Müller almost 9 years ago

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!


Replies (2)

RE: [solved]Email notification problem -> Gmail settings? - Added by Bernd Müller almost 9 years ago

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

RE: [solved]Email notification problem -> Gmail settings? - Added by Oliver Günther almost 9 years ago

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

  • (1 - 2/2)
Loading...