example push email using name not recipient

This commit is contained in:
Arief Ridwan 2019-02-28 16:36:11 +07:00
parent da24adb980
commit 6bd8a8adea

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, i) => ({ 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() + ']',