Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- host: 'smtp.gmail.com',
- auth: {
- user: 'transactions@gmail.com',
- pass: 'qwertyu@'
- }
- from: 'transactions@gmail.com',
- to: 'xxxxxx@gmail.com','yyyyyyyy@gmail.com',zzzzzz@mydomain.com,//here to:receiver not accept more than one
- subject: 'mail notification Test',
- text: 'Hello !!!!!!!!!everything works fine'
- html:<h1>Notification mail</h1>
- border: 1px solid black;
- border-collapse: collapse;
- padding: 10px;
- text-align: left;
- <table style="width:100%">
- <th>Firstname</th>
- <th>Lastname</th>
- <th>Age</th>
- <td>Jill</td>
- <td>Smith</td>
- <td>50</td>
- <td>Eve</td>
- <td>Jackson</td>
- <td>94</td>
- <td>John</td>
- <td>Doe</td>
- <td>80</td>
- if (error) {
- return console.log("mail not sent" +error.message);
- }
- console.log('success');
- newTemplate :newTemplate,
- sendTempMail : sendTempMail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement