Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • General discussion

Content

[SOLVED] OpenProject 3: Email on work package update – should it work?

Added by Daniel Jagszent about 9 years ago

I’m using OpenProject 3 (3.0.0pre44) and successfully configured email notifications (the test email works, email on work package creation works, I activated all actions in Settings -> Email notifications )

But I do not get any email notifications when a work package gets updated.

Can it be that the logic for that is missing in OpenProject 3? I had a peek in the source and found https://github.com/opf/openproject/blob/dev/app/models/journal_observer.rb – doesn’t look like the necessary after_update hook is present. But maybe I’m missing something?


Replies (7)

RE: OpenProject 3: Email on work package update – should it work? - Added by Hagen Schink about 9 years ago

Hi Daniel,

have you set up delayed job

Kind regards,
Hagen

RE: OpenProject 3: Email on work package update – should it work? - Added by Christian Ratz about 9 years ago

we send the email notifications on work package update delayed since the amount of recipients is not known and maybe very large. For the delay we use delayed_job from collectiveidea (https://github.com/collectiveidea/delayed_job/). On this page you can find how to use the delay_job.

A short how to:

First you should delete all entries in the ‘delayed_jobs’ table except you want to deliver ALL OLD emails from work package update.
Than you can start the delayed job:

Switch to OpenProject main folder (rails root) and run this command (adapt the RAILS_ENV to your current rails env):

RAILS_ENV=production script/delayed_job start

To stop the delayed job you can run the following command:

RAILS_ENV=production script/delayed_job stop

Be aware that you have to stop the delayed_job if you change (eg. update) the OpenProject code and start the delayed_job afterwards since the delayed_job runs with the code which it founds on startup.

RE: OpenProject 3: Email on work package update – should it work? - Added by Daniel Jagszent about 9 years ago

Thanks! Works like a charm!

RE: [SOLVED] OpenProject 3: Email on work package update – should it work? - Added by Denis Lamotte about 9 years ago

i’m using the same version OpenProject 3 (3.0.0pre44), have setup Delayed_jobs and i’m using sendmail for delivery. I successfully use sendmail with 4 chiliprojects on the same server.

production:
email_delivery_method: :sendmail
default:
email_delivery_method: :sendmail
———————————————————————————————————————————————————————————
no mail is sent when i look in the /var/mail/log but i see that mails are sent in the production log
Completed 200 OK in 693.5ms (Views: 440.3ms | ActiveRecord: 104.6ms)
Rendered user_mailer/_issue_details.html.erb (17.3ms)
Rendered user_mailer/issue_updated.html.erb within layouts/user_mailer (22.7ms)
Rendered user_mailer/_issue_details.text.erb (5.0ms)
Rendered user_mailer/issue_updated.text.erb within layouts/user_mailer (6.1ms)

Sent mail to paperjam@gmail.com (25.1ms)
2014-02-19T13:37:36+0100: [Worker(delayed_job host:[edited] pid:20255)] Class#issue_updated completed after 0.1458
Rendered user_mailer/_issue_details.html.erb (18.5ms)
Rendered user_mailer/issue_updated.html.erb within layouts/user_mailer (24.2ms)
Rendered user_mailer/_issue_details.text.erb (5.5ms)
Rendered user_mailer/issue_updated.text.erb within layouts/user_mailer (6.6ms)

Sent mail to denis.lamotte@gmail.com (27.0ms)
2014-02-19T13:37:36+0100: [Worker(delayed_job host:[edited] pid:20255)] Class#issue_updated completed after 0.1495
2014-02-19T13:37:36+0100: [Worker(delayed_job host:[edited] pid:20255)] 2 jobs processed at 4.9726 j/s, 0 failed …
———————————————————————————————————————————————————————————

how can i debug this ?

RE: [SOLVED] OpenProject 3: Email on work package update – should it work? - Added by Christian Ratz about 9 years ago

Hi Denis,

I’m not sure if it is related to copy&paste but since the email configuration is done in a yml file the indentation is important and your config should look like this:

production:
  email_delivery_method: :sendmail
default:
  email_delivery_method: :sendmail

Btw. OpenProject mail configuration should work exactly like chiliproject one

Best
Ratzi

RE: [SOLVED] OpenProject 3: Email on work package update – should it work? - Added by Denis Lamotte about 9 years ago

it is the case, yes it’s a valid yaml file

well i keep looking :(

RE: [SOLVED] OpenProject 3: Email on work package update – should it work? - Added by Denis Lamotte about 9 years ago

Well, from what i see many work_packages created/updated does not created the delayed_jobs entries.

With

production:
  email_delivery_method: :sendmail
  sendmail_arguments: " -i "
  sendmail_location: "/usr/sbin/sendmail"

i was able to receive 2 emails on 10 tasks created with the same options except the content, that’s weird !!

Updating TimeEntries does not seems to trigger any mail, nor the creation of a sub tasks.

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