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

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. email notification not working

email notification not working

Added by Erik Bijlsma about 9 years ago

I did a manual installation of OP5 on ubuntu 14.04 with PLESK 12.5

Everything works fine except for the email system. I am able to send a testmail.

When I create a new user …. no email is send
When I update a workpakkage ….. no email is send

configuration.yml:

  1. default configuration options for all environments
    default:
    # Outgoing emails configuration (see examples above)
    email_delivery_method: smtp
    smtp_address: example.nl
    smtp_port: 25
    smtp_domain: example.nl
    smtp_authentication: login
    smtp_user_name: “openproject@example.nl”
    smtp_password: “****”

When I run the worker for delayed jobs I get the following error:

[Worker(host)] Starting job worker
[Worker(host)] Job DeliverInvitationJob (id=17) RUNNING
[Worker(host)] Job DeliverInvitationJob (id=17) FAILED (0 prior attempts) with RuntimeError: Invalid delivery method :letter_opener
[Worker(host)] 1 jobs processed at 4.1106 j/s, 1 failed
[Worker(host)] No more jobs available. Exiting

Anybody any ideas???


Replies (1)

RE: email notification not working - Added by Erik Bijlsma about 9 years ago

Fixed the problem.

Found that the letter-opener was only used in Development mode.
By adding RAILS_ENV=production to the cronjob Openproject started to send mails.

cronjob now looks like this:
cd ~/openproject-ce; RAILS_ENV=production /var/www/vhosts/pmtool.nl/.rbenv/shims/bundle exec rake jobs:workoff

I now wonder if i’m running Openproject in development mode? how to run it in production mode?

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