Skip to content

Commit 02fa5c2

Browse files
Merge pull request rails#49712 from MatheusRich/mr/docs-for-action-mailer-asset-host
[ci skip] Update Action Mailer guide on how to add images
2 parents 4c5c904 + f18e3d3 commit 02fa5c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

guides/source/action_mailer_basics.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,13 @@ As the `:asset_host` usually is consistent across the application you can
634634
configure it globally in `config/application.rb`:
635635

636636
```ruby
637-
config.asset_host = 'http://example.com'
637+
config.action_mailer.asset_host = 'http://example.com'
638638
```
639639

640+
NOTE: Because we can't infer the protocol from the request, you'll need to
641+
specify a protocol such as `http://` or `https://` in the
642+
`:asset_host` config.
643+
640644
Now you can display an image inside your email.
641645

642646
```html+erb

0 commit comments

Comments
 (0)