Project copy always send email notifications ignoring "Send email notifications during the project copy" option
When copying a project in the projects list(Administration > Projects), you can disable sending an email by unchecking the "Send email notifications during the project copy" checkbox.
However, even if this checkbox is unchecking, email notifications are sent.
Updated by Go MAEDA about 4 years ago
- Subject changed from When copying a project, send an email even if email notification is not required to Project copy always send email notifications ignoring "Send email notifications during the project copy" option
- Category set to Email notifications
- Status changed from New to Confirmed
- Affected version set to 4.0.0
The option does not work since Redmine 4.0.0. Probably it is caused by #26791. Replacing
app/models/mailer.rb can be a quick-and-dirty workaround.
Updated by Pavel Rosický about 4 years ago
this method is problematic and should be deprecated because it can't reliably work with async deliveries https://github.com/redmine/redmine/blob/master/app/models/mailer.rb#L611
it might be better not to generate emails at all if you don't want to send them