Skip to content

Commit 4e009ee

Browse files
committed
Merge pull request rails#15667 from samdec/mailer_doc_bug_fix
fix bug in email with name example code
2 parents ae1b451 + fd984e8 commit 4e009ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/action_mailer_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ email address in the format `"Full Name <email>"`.
309309
```ruby
310310
def welcome_email(user)
311311
@user = user
312-
email_with_name = "#{@user.name} <#{@user.email}>"
312+
email_with_name = %("#{@user.name}" <#{@user.email}>)
313313
mail(to: email_with_name, subject: 'Welcome to My Awesome Site')
314314
end
315315
```

0 commit comments

Comments
 (0)