Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
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
0
Merge Requests
0
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
Nguyen Hoang Mai Phuong
sample_app
Commits
92830490
Commit
92830490
authored
Jun 24, 2021
by
Nguyen Hoang Mai Phuong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix email send on localhost
parent
919532ec
Pipeline
#1299
canceled with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
config/environments/development.rb
+10
-1
No files found.
config/environments/development.rb
View file @
92830490
...
@@ -36,8 +36,17 @@ Rails.application.configure do
...
@@ -36,8 +36,17 @@ Rails.application.configure do
config
.
action_mailer
.
perform_deliveries
=
true
config
.
action_mailer
.
perform_deliveries
=
true
# Don't care if the mailer can't send.
# Don't care if the mailer can't send.
config
.
action_mailer
.
raise_delivery_errors
=
true
config
.
action_mailer
.
raise_delivery_errors
=
false
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
default_url_options
=
{
host:
"localhost:3000"
,
protocol:
"http"
}
config
.
action_mailer
.
default_url_options
=
{
host:
"localhost:3000"
,
protocol:
"http"
}
config
.
action_mailer
.
smtp_settings
=
{
address:
'smtp.gmail.com'
,
port:
587
,
domain:
'localhost:3000'
,
user_name:
Rails
.
application
.
credentials
.
dig
(
:google_smtp
,
:email
),
password:
Rails
.
application
.
credentials
.
dig
(
:google_smtp
,
:password
),
authentication:
'plain'
,
enable_starttls_auto:
true
}
# Use this if developing on localhost.
# Use this if developing on localhost.
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
# config.action_mailer.default_url_options = { host: host, protocol: 'http' }
...
...
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