nodemailer

Nodemailer got error: 'ECONNRESET' Code:'ESOCKET'

梦想与她 提交于 2020-02-25 06:19:12
问题 I tried to send mail using Nodemailer by using my mail server. It work fine in localhost:8000 buy when I deploy my project to production mode It's got error: 'ECONNRESET' fyi: I use express for the backend and deploy this project on window server 2012 This is an error error cannot sendmail: Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:201:27) { errno: 'ECONNRESET', code: 'ESOCKET', syscall: 'read', command: 'CONN' Here is the code const nodemailer = require(

nodemailer on azure mobile service not working

瘦欲@ 提交于 2020-02-05 09:13:59
问题 I am trying to send mail with nodemailer. The script works on local machine but i am not able to include nodemailer in azure mobile service. Added 'nodemailer' : "*" in my package.json but still not able to include it. Logs says TypeError: Cannot read property 'prototype' of undefined I commented out complete logic but error was still there. Finally commented out var nodemailer = require('nodemailer'); and error was gone. 回答1: To get around this issue, you need to install an older version of

nodemailer on azure mobile service not working

安稳与你 提交于 2020-02-05 09:12:58
问题 I am trying to send mail with nodemailer. The script works on local machine but i am not able to include nodemailer in azure mobile service. Added 'nodemailer' : "*" in my package.json but still not able to include it. Logs says TypeError: Cannot read property 'prototype' of undefined I commented out complete logic but error was still there. Finally commented out var nodemailer = require('nodemailer'); and error was gone. 回答1: To get around this issue, you need to install an older version of

trying to send basic nodemailer email

时光总嘲笑我的痴心妄想 提交于 2020-02-02 06:10:41
问题 I'm trying to insert some test code with hard-coded email data directly into my nodemailer server.js file to get started with a basic working example. See the "test code" section at the following url: http://jsbin.com/sibubi/1/edit?html,js,console Server.js loads without issue without the test code. However, an error occurs when the "test code" section is included. It complains about "unsupported configuration" and suggests a downgrade but I copied the test code from the nodemailer website.

trying to send basic nodemailer email

旧城冷巷雨未停 提交于 2020-02-02 06:07:48
问题 I'm trying to insert some test code with hard-coded email data directly into my nodemailer server.js file to get started with a basic working example. See the "test code" section at the following url: http://jsbin.com/sibubi/1/edit?html,js,console Server.js loads without issue without the test code. However, an error occurs when the "test code" section is included. It complains about "unsupported configuration" and suggests a downgrade but I copied the test code from the nodemailer website.

Connection timeout error when sending mail from Zohomail using Nodemailer

半世苍凉 提交于 2020-01-24 12:25:48
问题 Below is my Node app.js code. With these settings, I am receiving a connection timeout error. Any idea what I am missing here? var nodemailer = require("nodemailer"); var transporter = nodemailer.createTransport({ host: 'smtp.zoho.com', port: 465, secure: true, // use SSL auth: { user: '<myemail@example.com>', pass: '<myemailpassword>' } }); var mailOptions = { from: "<fromemail@example.com>", to: "<toemail@example.com>", subject: "Hello", generateTextFromHTML: true, html: { path: './tmpl

Connection timeout error when sending mail from Zohomail using Nodemailer

霸气de小男生 提交于 2020-01-24 12:25:05
问题 Below is my Node app.js code. With these settings, I am receiving a connection timeout error. Any idea what I am missing here? var nodemailer = require("nodemailer"); var transporter = nodemailer.createTransport({ host: 'smtp.zoho.com', port: 465, secure: true, // use SSL auth: { user: '<myemail@example.com>', pass: '<myemailpassword>' } }); var mailOptions = { from: "<fromemail@example.com>", to: "<toemail@example.com>", subject: "Hello", generateTextFromHTML: true, html: { path: './tmpl

Email send through nodemailer goes into spam for gmail

醉酒当歌 提交于 2020-01-22 17:33:46
问题 I am sending email through nodemailer it goes into inbox of gmail if i run from local server but goes into spam of gmail if i run script from microsoft azure server. following is my script var nodemailer = require('nodemailer'); var EmailTemplates = require('swig-email-templates'); var smtpConfig = { service: 'smtp.office365.com', host: 'smtp.office365.com', port: 587, starttls: { enable: true }, secureConnection: true, auth: { user: 'xxxxx@yyyy.com', pass: 'zzzzzz' } } var templates = new

Nodemailer attachment not working in nodemailer 0.7.1

落爺英雄遲暮 提交于 2020-01-17 03:28:04
问题 I am trying to send an attachment using nodemailer 0.7.1. The attachment is sent fine but when I try to open it, the shows ERROR OPENING FILE. Here is my code: var nodemailer = require("nodemailer"); var transport = nodemailer.createTransport("SMTP", { host: "smtp.gmail.com", // hostname secureConnection: true, // use SSL port: <port>, // port for secure SMTP auth: { user: "example.example@gmail.com", pass: "password" } }); console.log("SMTP Configured"); var mailOptions = { from: 'example

sending mail with nodemailer

馋奶兔 提交于 2020-01-16 00:43:10
问题 whenever i run the code I'm getting the error " Error: Greeting never received at SMTPConnection._formatError...." function automatedMailSender(req,res){ var mailOptions = { from: "abc <abc@test.com>", // sender address to: 'nit@test.com', // list of receivers subject: 'Hello ', // Subject line text: 'Hello world ?', // plain text body html: '<b>Hello world ?</b>' // html body }; var mailer=nodemailer.createTransport({ host: 'mail.test.com', port: 465, secure: false, // secure:true for port