Skip to content
Snippets Groups Projects

Issue #59: UPDATE confirmation email

Merged tmn21 requested to merge update_confirm_email into develop
3 files
+ 31
7
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 9ab8b87c
    Issue #59: UPDATE confirmation email · 9ab8b87c
    tmn21 authored
@@ -12,7 +12,9 @@ class UserMailer < ActionMailer::Base
#function to send email confirmation to user, this view is located in app/views/user_mailer/email_confirmation.html.erb
def email_confirmation (user)
@user = user
mail(to: @user.email, subject: 'Confirmação de email')
mail(from: format_sender('plataformamecred@c3sl.ufpr.br', 'Plataforma MEC RED'),
to: @user.email,
subject: 'Confirme sua conta na Plataforma MEC RED')
end
def users_email_sender (email, subject, body)
@@ -20,4 +22,7 @@ class UserMailer < ActionMailer::Base
mail(from: "integrada.contato@mec.gov.br", to: email, subject: subject)
end
def format_sender(email, name)
%("#{name}" <#{email}>)
end
end
Loading