summaryrefslogtreecommitdiffstats
path: root/app/models/mailer.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Send individual emails for each mail recipient (#26791).Jean-Philippe Lang2018-10-061-108/+405
| | | | | | | | | | | | | | | | | | | | | | | We are creating multipe mails per class notification event, one per recipient, wrapped in a Mailer::MultiMessage object to send them all at once. We keep the existing interface of all class methods intended to be used by external code the same as they were before, with one exception: We provide additional recipient addresses in options[:recipients] for Mailer.security_notification. Since the first-class recipients have to be users to render individual mails for them, additional recipient addresses have to be provided with some other channel. By providing additional recipients in options[:recipients], we can solve the use-case for address change notifications for users, which probably is the only real use-case for having to use a plain email address instead of a User as a notification recipient. Patch by Holger Just and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17583 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace String#gsub with faster String#tr (#29363).Go MAEDA2018-08-121-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Security notification on password recovery is empty (#28302).Jean-Philippe Lang2018-04-071-2/+7
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@17269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unused method Mailer#mylogger (#28028).Go MAEDA2018-02-111-4/+0
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix typo in error message when target version was not found (#28024).Go MAEDA2018-01-241-1/+1
| | | | | | | Patch by Marius Žilėnas. git-svn-id: http://svn.redmine.org/redmine/trunk@17184 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace tabs with spaces (#26333).Toshi MARUYAMA2017-07-041-1/+1
| | | | | | Patched by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16753 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent clash with Rails 5.1 Mailer class.Jean-Philippe Lang2017-06-031-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16600 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send reminders about visible issues only (#25713).Jean-Philippe Lang2017-05-131-1/+4
| | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16557 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't send a notification to the dummy email address of the default admin ↵Jean-Philippe Lang2016-05-081-0/+5
| | | | | | account (#21421). git-svn-id: http://svn.redmine.org/redmine/trunk@15402 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a specific string for password changed notification (#21421).Jean-Philippe Lang2016-05-081-2/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15399 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds instance name to the security notification subject (#21421).Jean-Philippe Lang2016-03-201-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15269 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Let the mailer set the email content (#21421).Jean-Philippe Lang2016-03-201-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15267 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send a notification when security settings are changed (#21421).Jean-Philippe Lang2016-02-051-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15148 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Security notifications when password or email adress is changed (#21421).Jean-Philippe Lang2016-02-051-0/+14
| | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add roadie-rails gem for e-mail inline styles (#8335, #20641)Toshi MARUYAMA2015-08-311-0/+3
| | | | | | Contributed by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14540 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mail handler should not ignore emails with x-auto-response-suppress header ↵Jean-Philippe Lang2015-04-111-1/+1
| | | | | | | | (#19558). Patch by Sebastian Paluch. git-svn-id: http://svn.redmine.org/redmine/trunk@14159 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Incorrect links generated in emails if host setup uses other port (#19323).Jean-Philippe Lang2015-03-141-1/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14081 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Raise an error if version is not found (#18983).Jean-Philippe Lang2015-02-071-2/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13965 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow filtering of Redmine Reminders by Version (#18983).Jean-Philippe Lang2015-02-071-0/+3
| | | | | | Patch by Merul Patel. git-svn-id: http://svn.redmine.org/redmine/trunk@13964 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send password reset email to the email used in lost password form (#4244).Jean-Philippe Lang2015-01-171-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13888 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for multiple email addresses per user (#4244).Jean-Philippe Lang2015-01-171-22/+49
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't overwrite headers that were already set (#14699).Jean-Philippe Lang2014-12-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13784 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mailer.token_for generates invalid message_id when using from address with ↵Jean-Philippe Lang2014-05-021-1/+1
| | | | | | full name (#16619). git-svn-id: http://svn.redmine.org/redmine/trunk@13126 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove users from cc if they are already notified (#16415).Jean-Philippe Lang2014-03-291-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13029 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable the watching of news (#2549).Jean-Philippe Lang2014-02-091-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12866 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded Relation#all from Mailer modelToshi MARUYAMA2014-01-271-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12723 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that the mail method should return a Mail::Message (#15113).Jean-Philippe Lang2013-10-131-5/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12210 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't notify users about relations that are not visible (#1005).Jean-Philippe Lang2013-07-131-3/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12015 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role-based issue custom field visibility (#5037).Jean-Philippe Lang2013-07-131-30/+58
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed dead code.Jean-Philippe Lang2013-07-131-25/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log email delivery errors (#14403).Jean-Philippe Lang2013-07-131-1/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12010 e93f8b46-1217-0410-a6f0-8f06a7374b81
* gender neutral source comment at app/models/mailer.rbToshi MARUYAMA2013-07-061-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11988 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-space from app/models/mailer.rbToshi MARUYAMA2013-05-251-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11902 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that locking and unlocking a user resets the email notification ↵Jean-Philippe Lang2013-05-131-1/+1
| | | | | | checkbox (#14020). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11839 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-021-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that watchers receive notifications for private comments without ↵Jean-Philippe Lang2012-11-051-1/+1
| | | | | | permission (#12286). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10789 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Private issue notes (#1554).Jean-Philippe Lang2012-10-031-1/+1
| | | | | | Adds 2 new permissions for viewing/adding private comments to issues. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10547 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-09-091-6/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10337 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that the reminder email excludes issues assigned to groups (#11723).Jean-Philippe Lang2012-09-091-1/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10335 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that Mailer.with_synched_deliveries does not use delivery settings ↵Jean-Philippe Lang2012-07-311-1/+3
| | | | | | (#11550). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10147 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Restored List-Id header in email notifications (#10888).Jean-Philippe Lang2012-05-131-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9687 e93f8b46-1217-0410-a6f0-8f06a7374b81
* change mailer model method comments to Rails3 styleToshi MARUYAMA2012-05-091-35/+35
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9663 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replace Mailer deliver syntax to Rails3 style at reminders method of mailer ↵Toshi MARUYAMA2012-05-091-1/+1
| | | | | | model git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9662 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a deprecation warning to Mailer.deliver_*.Jean-Philippe Lang2012-05-051-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9639 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81