Project

General

Profile

Feature #37571

Updated by Go MAEDA about 2 years ago

I need to set a custom email sender per project. There used to be plugins for very old redmine versions, but these don't work with current versions any more: 

 https://github.com/Warecorp/redmine_project_specific_email_sender 
 https://github.com/eashman/redmine_author_notification_emails 

 My current solution is to add a custom mail_from field to projects and patch app/models/mailer.rb like this: 

 <pre> 
 678a679,686 
 >       # CE: project specific mail from address 
 >       if @issue 
 >         new_mail = @issue.project.custom_field_values[0].value 
 >         if !new_mail.nil? 
 >           headers.merge!('From' => new_mail) 
 >         end 
 >       end 
 >  
 </pre> 

  

 I'm wondering if someting like this could be add to redmine. 

Back