Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. userUtils.createWelcomeEmails = function() {
  2. let profmess = {};
  3. users.forEach(function(item) {
  4. if (item.accessCount === 0) {
  5. profmess[item.contact.email] = `Dear ${item.name.first} ${item.name.last}
  6. Welcome to imaginary application! We're so happy you joined, and wanted
  7. to take a moment to say hello. Our other users from ${item.address.city}, ${item.address.country} will
  8. be glad to have you join them.
  9.  
  10. Have a great day!
  11.  
  12. Your Friends at the Imaginary Application Team`;
  13. }
  14. });
  15. return profmess;
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement