简体   繁体   English

Javascript-我们一次可以使用NodeMailer在nodeJs中发送多少封电子邮件?

[英]javascript - how many emails we can send in nodeJs by using NodeMailer at a time?

I am working on an application which functionality is to sending continuous email using NodeJs and Angular. 我正在开发一个功能是使用NodeJs和Angular发送连续电子邮件的应用程序。 My problem is when I am sending more than 40 or 50 emails then, it is not delivering to recipient and I am also not getting any kind of error in console 我的问题是,当我发送超过40或50封电子邮件时,它没有传递给收件人,并且在控制台中也没有出现任何错误

 var emailArray = [hello1@gmail.com, hello1@gmail.com ....hello40@gmail.com];
 var transporter = nodemailer.createTransport(smtpTransport({
    host: 'md-19.webhostbox.net',
    port: 465,
    ssl: true,
    auth: {
        user: 'info@abc.com',                  // bluehost
        pass: 'abc12345'
    }
}));
var message = {
    from: "Name <info@abc.com>",
    to: emailArray,
    subject: 'subject',
    html: '<b>Hello world</b>'
};
transporter.sendMail(message, function(error, info) {
         console.log(error || info);
});

唯一的限制是您可以处理的最大tcp连接数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM