Skip to content

Commit

Permalink
Clarified how you can change the sender name.
Browse files Browse the repository at this point in the history
Clarified how you can change the sender name, which was not entirely obvious. Also added it to the "kitchen sink" example and fixed the link to that section in the table of contents.
  • Loading branch information
Sundin authored Dec 20, 2017
1 parent d2cfebf commit 394d6a2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/mail/USE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This documentation provides examples for specific email use cases. Please [open
* [Specifying Time to Send At](#time-to-send)
* [Specifying Custom Headers](#custom-headers)
* [Specifying Categories](#categories)
* [Kitchen Sink - an example with all settings used](#kitchensink)
* [Kitchen Sink - an example with all settings used](#kitchen-sink---an-example-with-all-settings-used)
* [Deploy a Simple App on Google App Engine with Node.js](#gae)
* [How to Setup a Domain Whitelabel](#domain-white-label)
* [How to View Email Statistics](#email-stats)
Expand Down Expand Up @@ -121,13 +121,13 @@ The email address fields (`to`, `from`, `cc`, `bcc`, `replyTo`) are flexible and
const msg = {

//Simple email address string
to: 'someone@example.org',
from: 'someone@example.org',

//Email address with name
to: 'Some One <someone@example.org>',
from: 'Some One <someone@example.org>',

//Object with name/email
to: {
from: {
name: 'Some One',
email: 'someone@example.org',
},
Expand Down Expand Up @@ -420,7 +420,10 @@ const msg = {
to: 'recipient@example.org',
cc: 'someone@example.org',
bcc: ['me@example.org', 'you@example.org'],
from: 'sender@example.org',
from: {
email: 'sender@example.org',
name: 'Sender Name'
},
replyTo: 'othersender@example.org',
subject: 'Hello world',
text: 'Hello plain world!',
Expand Down

0 comments on commit 394d6a2

Please sign in to comment.