Fix image in emails

main
Hugo Peixoto 4 months ago
parent e2bcdaec26
commit 9dfdf3675b
  1. BIN
      app/assets/images/ansol-logo-white.png
  2. 2
      app/views/layouts/mailer.html.erb
  3. 2
      config/environments/development.rb
  4. 4
      config/environments/production.rb

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

@ -10,7 +10,7 @@
<body>
<div style="max-width: 600px;">
<div style="background-color: #041952; padding: 20px">
<img src="https://hugopeixoto.net/images/ansol-logo-white.png?xxx" style="margin: 0px auto; max-width: 400px; display: block; color: white" alt="ANSOL" />
<img src="<%= image_url("ansol-logo-white.png") %>" style="margin: 0px auto; max-width: 400px; display: block; color: white" alt="ANSOL" />
</div>
<%= yield %>

@ -57,6 +57,8 @@ Rails.application.configure do
host: ENV['BASE_HOST'],
}
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

@ -71,9 +71,7 @@ Rails.application.configure do
host: ENV['BASE_HOST'],
}
config.action_mailer.default_url_options = {
host: ENV['BASE_HOST'],
}
config.action_mailer.asset_host = "https://#{ENV['BASE_HOST']}"
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).

Loading…
Cancel
Save