Commit c8741169 by Tô Ngọc Ánh

Config mailcatcher in development

parent cf113baf
<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>
...@@ -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
......
...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment