[Git][noosfero/noosfero][master] 2 commits: mailer: send e-mail from noreply_email instead of contact_email

Rodrigo Souto gitlab at mg.gitlab.com
Thu Oct 26 19:02:34 BRST 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
f5fe9ea1 by Rodrigo Souto at 2017-10-26T12:39:10-03:00
mailer: send e-mail from noreply_email instead of contact_email

- - - - -
3137691c by Rodrigo Souto at 2017-10-26T21:02:20+00:00
Merge branch 'noreply-emails' into 'master'

mailer: send e-mail from noreply_email instead of contact_email

See merge request noosfero/noosfero!1338
- - - - -


1 changed file:

- app/mailers/user_mailer.rb


Changes:

=====================================
app/mailers/user_mailer.rb
=====================================
--- a/app/mailers/user_mailer.rb
+++ b/app/mailers/user_mailer.rb
@@ -13,7 +13,7 @@ class UserMailer < ApplicationMailer
 
     mail(
       to: user_email,
-      from: "#{user.environment.name} <#{user.environment.contact_email}>".html_safe,
+      from: "#{user.environment.name} <#{user.environment.noreply_email}>".html_safe,
       subject: _("[%{environment}] Welcome to %{environment} mail!").html_safe % { :environment => user.environment.name }
     )
   end
@@ -28,7 +28,7 @@ class UserMailer < ApplicationMailer
     @join = (user.community_to_join if user.community_to_join)
 
     mail_with_template(
-      from: "#{user.environment.name} <#{user.environment.contact_email}>",
+      from: "#{user.environment.name} <#{user.environment.noreply_email}>",
       to: user.email,
       subject: _("[%s] Activate your account").html_safe % [user.environment.name],
       template_params: {:environment => user.environment, :activation_code => @activation_code, :redirection => @redirection, :join => @join, :person => user.person, :url => @url},
@@ -44,7 +44,7 @@ class UserMailer < ApplicationMailer
     mail(
       content_type: 'text/html',
       to: user.email,
-      from: "#{user.environment.name} <#{user.environment.contact_email}>".html_safe,
+      from: "#{user.environment.name} <#{user.environment.noreply_email}>".html_safe,
       subject: email_subject.blank? ? _("Welcome to environment %s").html_safe % [user.environment.name] : email_subject,
       body: @body
     )
@@ -63,7 +63,7 @@ class UserMailer < ApplicationMailer
     mail(
       content_type: 'text/html',
       to: user.email,
-      from: "#{user.environment.name} <#{user.environment.contact_email}>".html_safe,
+      from: "#{user.environment.name} <#{user.environment.noreply_email}>".html_safe,
       subject: _("[%s] What about grow up your network?").html_safe % user.environment.name
     )
   end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e0dccd436fc7e0937c6af5a7fb1f25a246c558ad...3137691cd601c93fc75b25e43d62c52c35104f4e

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e0dccd436fc7e0937c6af5a7fb1f25a246c558ad...3137691cd601c93fc75b25e43d62c52c35104f4e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20171026/076ae69c/attachment-0001.html>


More information about the Noosfero-dev mailing list