Editing Gitlab email templates to prevent them from getting caught in spam filters

Nov 5th, 2014 | By | Category: Internet, Linux / Freebsd

So it looks like the default emails are getting picked up by gmail’s spam filters so I wanted to rewrite the tempaltes so they seemed a bit more natural sounding and hopefully pass the test.  To do so you need to go into :

 

and edit the following files: /opt/gitlab/embedded/service/gitlab-rails/app/views/notify

  • new_user_email.text.erb
  • new_user_email.html.haml

 

This will take care of the body of the emails, to edit the subject you need to edit the following file: /opt/gitlab/embedded/service/gitlab-rails/app/mailers/email/profile.rb

 

Tags: , , ,

Leave a Comment