Merge pull request #118 from aridwan/master

example push email using name, not recipient index
This commit is contained in:
Andris Reinman 2019-03-01 07:06:25 +02:00 committed by GitHub
commit feffde04b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ function send() {
from: 'Kärbes 🐧 <andris@kreata.ee>',
to: recipients
.map((rcpt, i) => ({ name: 'Recipient #' + (i + 1), address: rcpt }))
.map((rcpt) => ({ name: rcpt.split('@')[0], address: rcpt }))
.concat('andris <andris.reinman@gmail.com>, andmekala <andmekala@hot.ee>'),
cc: '"Juulius Orro" muna@gmail.com, kixgraft@gmail.com',
subject: 'Test ööö message [' + Date.now() + ']',