Config: add action_mailer.asset_host var to send image in email

This commit is contained in:
Simon Lehericey 2017-05-19 16:20:07 +02:00
parent 5a794a8b9a
commit 45209619a4

View file

@ -42,6 +42,7 @@ Rails.application.configure do
# Action Mailer settings # Action Mailer settings
config.action_mailer.delivery_method = :smtp config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.asset_host = 'http://localhost:3000'
# Config for mailcatcher https://mailcatcher.me/ # Config for mailcatcher https://mailcatcher.me/
config.action_mailer.smtp_settings = { config.action_mailer.smtp_settings = {
:address => "localhost", :address => "localhost",