Skip to content

Instantly share code, notes, and snippets.

@mb8z
Last active March 3, 2021 17:24
Show Gist options
  • Save mb8z/822d6df4a3241d9a44dcd887881aa0a3 to your computer and use it in GitHub Desktop.
Save mb8z/822d6df4a3241d9a44dcd887881aa0a3 to your computer and use it in GitHub Desktop.
Sending an email to one recipient with bccs and ccs
const { Emails } = require('automagically');
const send = async () => {
const email = Emails.send({
from: { email: '[email protected]', name: 'AwesomeApp' },
to: [{ email: '[email protected]', name: 'John Doe' }],
bcc: [{ email: '[email protected]', name: 'Kylo Ren' }],
cc: [{ email: '[email protected]', name: 'Leia' }],
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