Advertisement
Guest User

Untitled

a guest
Aug 5th, 2017
853
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. host: 'smtp.gmail.com',
  2.  
  3. auth: {
  4.  
  5. user: 'transactions@gmail.com',
  6.  
  7. pass: 'qwertyu@'
  8.  
  9. }
  10.  
  11. from: 'transactions@gmail.com',
  12.  
  13. to: 'xxxxxx@gmail.com','yyyyyyyy@gmail.com',zzzzzz@mydomain.com,//here to:receiver not accept more than one
  14.  
  15. subject: 'mail notification Test',
  16.  
  17. text: 'Hello !!!!!!!!!everything works fine'
  18.  
  19. html:<h1>Notification mail</h1>
  20.  
  21. border: 1px solid black;
  22.  
  23. border-collapse: collapse;
  24.  
  25. padding: 10px;
  26.  
  27. text-align: left;
  28.  
  29. <table style="width:100%">
  30.  
  31. <th>Firstname</th>
  32.  
  33. <th>Lastname</th>
  34.  
  35. <th>Age</th>
  36.  
  37. <td>Jill</td>
  38.  
  39. <td>Smith</td>
  40.  
  41. <td>50</td>
  42.  
  43. <td>Eve</td>
  44.  
  45. <td>Jackson</td>
  46.  
  47. <td>94</td>
  48.  
  49. <td>John</td>
  50.  
  51. <td>Doe</td>
  52.  
  53. <td>80</td>
  54.  
  55. if (error) {
  56.  
  57. return console.log("mail not sent" +error.message);
  58.  
  59. }
  60.  
  61. console.log('success');
  62.  
  63. newTemplate :newTemplate,
  64.  
  65. sendTempMail : sendTempMail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement