You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@sg01:/home/node# node stats.js
SMTP Configured
Sending Mail
Error occurred
self signed certificate
this my test script
var mailer = require('nodemailer');
var transporter = mailer.createTransport({
host: '128.199.226.xxx',
port: 465,
secure: true,
auth: {
user: 'noreply@xxx.xx',
pass: 'xxx'
}
});
console.log('SMTP Configured');
// Message object
var message = {
// sender info
from: 'KabarGames <noreply@xxx.xx>',
// Comma separated list of recipients
to: "tes" <xxx@outlook.com>',
// Subject of the message
subject: 'Nodemailer is unicode friendly ✔', //
// plaintext body
text: 'Hello to myself!',
// HTML body
html: '<p><b>Hello</b> to myself <img src="cid:note@example.com"/></p>' +
'<p>Here\'s a nyan cat for you as an embedded attachment:<br/><img src="cid:nyan@example.com"/></p>',
// Apple Watch specific HTML body
watchHtml: '<b>Hello</b> to myself',
};
console.log('Sending Mail');
transporter.sendMail(message, function(error, info) {
if (error) {
console.log('Error occurred');
console.log(error.message);
return;
}
console.log('Message sent successfully!');
console.log('Server responded with "%s"', info.response);
});
The text was updated successfully, but these errors were encountered:
Deleted my comment cause i figured that out. Thanks for the quick response tho! I think the docs could use a bit of improvement, which I'll continue to do as I puzzle out how to make email work for me.
hi, i got error when try to send email using SMTP
this my test script
The text was updated successfully, but these errors were encountered: