Content
email notification not working
Added by Erik Bijlsma about 8 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:
- 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)
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?