Please, help

<!DOCTYPE html> <html> <head> <meta charset="Utf-8"> <script data-main="findem" src="require.js"></script> </head> <body> <script src="findem.js"></script> </body> </html> 

I collect browserify file to use node modules via browser

 var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport('smtps://1@gmail.com:7777@smtp.gmail.com'); var mailOptions = { from: '"John" <John@gmail.com>', to: '2221@gmail.com', subject: 'Hello ', text: 'Hello11', html: '<b>Hello22</b>' }; transporter.sendMail(mailOptions, function(error, info){ if(error){ return console.log(error); } console.log('Message sent: ' + info.response); }); 

error itself:

 url.js:295 Uncaught TypeError: punycode.toASCII is not a function Url.parse @ url.js:295 urlParse @ url.js:106 module.exports.parseConnectionUrl @ shared.js:18 module.exports.createTransport @ nodemailer.js:37 253.nodemailer @ main.js:4 s @ _prelude.js:1 e @ _prelude.js:1 (anonymous function) @ _prelude.js 

I can not figure out what I did wrong ?!

  • I did not understand. Do you want to send letters directly from the browser? - Alexey Ten

0