From 6bd8a8adeaebae14420dadc965dc09a24f7db48f Mon Sep 17 00:00:00 2001 From: Arief Ridwan Date: Thu, 28 Feb 2019 16:36:11 +0700 Subject: [PATCH] example push email using name not recipient --- examples/push-message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/push-message.js b/examples/push-message.js index 916212c2..acefb755 100644 --- a/examples/push-message.js +++ b/examples/push-message.js @@ -37,7 +37,7 @@ function send() { from: 'Kärbes 🐧 ', to: recipients - .map((rcpt, i) => ({ name: 'Recipient #' + (i + 1), address: rcpt })) + .map((rcpt, i) => ({ name: rcpt.split('@')[0], address: rcpt })) .concat('andris , andmekala '), cc: '"Juulius Orro" muna@gmail.com, kixgraft@gmail.com', subject: 'Test ööö message [' + Date.now() + ']',