Last active
March 3, 2021 17:24
-
-
Save mb8z/0858a645c1b141efdad6cc42a659c3ad to your computer and use it in GitHub Desktop.
Sending an email to multiple recipients
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Emails } = require('automagically'); | |
const send = async () => { | |
const email = Emails.send({ | |
from: { email: '[email protected]', name: 'AwesomeApp' }, | |
to: [ | |
{ email: '[email protected]', name: 'John Doe' }, | |
{ email: '[email protected]', name: 'Foo Bar' }, | |
], | |
subject: 'Welcome', | |
text: 'Hey there, this is a test email!', | |
}); | |
}; | |
send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment