Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Merge requests
!54
Issue
#59
: UPDATE confirmation email
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#59
: UPDATE confirmation email
update_confirm_email
into
develop
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
tmn21
requested to merge
update_confirm_email
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
Resolve
#59 (closed)
0
0
Merge request reports
Viewing commit
9ab8b87c
Show latest version
3 files
+
31
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
9ab8b87c
Issue
#59
: UPDATE confirmation email
· 9ab8b87c
tmn21
authored
1 year ago
app/mailers/user_mailer.rb
+
6
−
1
Options
@@ -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