Skip to content

Commit bd44fa3

Browse files
committed
Use email_address_with_name
1 parent 113c2d5 commit bd44fa3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,14 @@ Use the following format:
14331433
default from: 'Your Name <info@your_site.com>'
14341434
----
14351435

1436+
If you're using Rails 6.1 or higher, you can use the `email_address_with_name` method:
1437+
1438+
[source,ruby]
1439+
----
1440+
# in your mailer class
1441+
default from: email_address_with_name('Your Name', 'info@your_site.com')
1442+
----
1443+
14361444
=== Delivery Method Test [[delivery-method-test]]
14371445

14381446
Make sure that the e-mail delivery method for your test environment is set to `test`:

0 commit comments

Comments
 (0)