Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarified how you can change the sender name #645

Merged
merged 1 commit into from
Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions packages/mail/USE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,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 @@ -443,7 +443,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