Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tô Ngọc Ánh
VeNJob
Commits
c8741169
Commit
c8741169
authored
Aug 12, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config mailcatcher in development
parent
cf113baf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
app/views/devise/mailer/confirmation_instructions.html.erb
+5
-3
config/environments/development.rb
+2
-1
config/initializers/devise.rb
+1
-1
No files found.
app/views/devise/mailer/confirmation_instructions.html.erb
View file @
c8741169
<p>
Welcome
<%=
@email
%>
!
</p>
<p>
You're on your way!
</p>
<p>
You can confirm your account email through the link below:
</p>
<p>
Let's confirm your email address.
</p>
<p>
By clicking on the following link, you are confirming
your email address and agreeing to VeNJOB's Terms of Service.
</p>
<p>
<%=
link_to
'Confirm my account'
,
confirmation_url
(
@resource
,
confirmation_token:
@token
)
%>
</p>
<p>
<%=
link_to
'Confirm my account'
,
confirmation_url
(
@resource
,
confirmation_token:
@token
)
%>
</p>
config/environments/development.rb
View file @
c8741169
...
@@ -31,7 +31,8 @@ Rails.application.configure do
...
@@ -31,7 +31,8 @@ Rails.application.configure do
config
.
active_storage
.
service
=
:local
config
.
active_storage
.
service
=
:local
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost'
,
port:
3000
}
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost'
,
port:
3000
}
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
smtp_settings
=
{
address:
'localhost'
,
port:
1025
}
# Don't care if the mailer can't send.
# Don't care if the mailer can't send.
config
.
action_mailer
.
raise_delivery_errors
=
false
config
.
action_mailer
.
raise_delivery_errors
=
false
...
...
config/initializers/devise.rb
View file @
c8741169
...
@@ -18,7 +18,7 @@ Devise.setup do |config|
...
@@ -18,7 +18,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
# with default "from" parameter.
config
.
mailer_sender
=
'
please-change-me-at-config-initializers-devise@example
.com'
config
.
mailer_sender
=
'
admin@venjob
.com'
# Configure the class responsible to send e-mails.
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
# config.mailer = 'Devise::Mailer'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment