nodemailer

Sending AngularJS form to NodeMailer to send email

可紊 提交于 2019-12-01 22:59:59
I have a built an email form in a modal instance using AngularJS that contains the field sending email, recipient email, subject, and email content. The form uses input boxes and ng-models to keep track of the data. When the user hits the send button on this form, I would like to send all of the information collected by the models to the server to send an email. Currently, I have a draft button and when the user hits the draft button, I send all of the information collected in the models to a controller who sends it to a service so that I can repopulate the information if the user decides to

nodemailer gmail connection closed with high number of mails

耗尽温柔 提交于 2019-12-01 21:43:17
I have exactly the same issue as this post : Send multipe emails using nodemailer and gmail When sending too many emails with nodemailer and gmail, I get a 421 error, referring to too many concurrent sessions. What can i do to avoid opening too many sessions ? I already contact google who confirm me I wasn't blocked by any limitation ( I didn't reach the number of daily mail and there is no limit on mail/minute). I tried to wait for each mail to be sent before sending a new one; to create and close new transport at each mail, but I keep getting this error after approximately the 100th email.

Can I use nodemailer in browser?

可紊 提交于 2019-12-01 11:24:41
I've created a simple react redux app (using webpack ) with a contact form which when the user clicks submit I want to generate and send an email. To do this I have been trying to use nodemailer like so: import nodemailer from 'nodemailer'; //... sendEmail () { const emailInfo = { to: 'foo@bar.com', from: 'bar@foo.com', subject: 'Message from bar', text: 'Hello world!' }; const connectionInfo = { host: '...', port: 123, secure: true, auth: { user: 'foo@bar.com', pass: 'foo123' } }; const transporter = nodemailer.createTransport('SMTP', connectionInfo); transporter.sendMail(emailInfo, function

Nodemailer Error Can't Fix

旧巷老猫 提交于 2019-12-01 02:16:11
I have a very simple application, just starting to get my hands dirty with nodemailer. When I run the app I get errors in the module itself. app.js: const nodemailer = require('nodemailer'); const transporter = nodemailer.createTransport('smtps://me%40gmail.com:supersecretpw@smtp.gmail.com'); var mailOptions = { from: '"Me" <me@gmail.com>', // sender address to: 'him@him.com, her@her.com', // list of receivers subject: 'Hello dude', // Subject line text: 'Test email with text', // plaintext body html: "Testing 1..2..7" // html body }; // send mail with defined transport object transporter

Nodemailer Error Can't Fix

核能气质少年 提交于 2019-11-30 21:45:24
问题 I have a very simple application, just starting to get my hands dirty with nodemailer. When I run the app I get errors in the module itself. app.js: const nodemailer = require('nodemailer'); const transporter = nodemailer.createTransport('smtps://me%40gmail.com:supersecretpw@smtp.gmail.com'); var mailOptions = { from: '"Me" <me@gmail.com>', // sender address to: 'him@him.com, her@her.com', // list of receivers subject: 'Hello dude', // Subject line text: 'Test email with text', // plaintext

NodeMailer - send mail with Google service account fails because “Username and Password not accepted”

会有一股神秘感。 提交于 2019-11-30 20:52:27
I'm creating a Twitter bot and I'm implementing a method that sends me a email if there is an error. As I'm already using the google API to access Google Drive (have no problem here), I decided to use the service account to send the email (Google console says it could be used that way) The method I've come up to send the email so far is: var config = require('./config/mail'); var google = require('./config/google'); var nodemailer = require('nodemailer'); var send = function (args) { let transporter = nodemailer.createTransport({ 'service': 'gmail', 'auth': { 'type': 'OAuth2', 'user': google

smtp send mail via postfix and nodejs nodemailer connection closed

心不动则不痛 提交于 2019-11-30 17:02:16
i have problem of remote sending via smtp server using nodejs module nodemailer host: 'mail.5cpa.ru' port: 587 secure: false (true tried also) smtp server is mine, and i can send mails through thenderbird, using same setting log server 220 5cpa.ru ESMTP Postfix (Ubuntu) client EHLO vonica server 250-5cpa.ru 250-PIPELINING 250-SIZE 15728640 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN client STARTTLS server 220 2.0.0 Ready to start TLS socket Closing connection to the server thanks! I had similar problem (maybe the same) and I figure out that this happens when i use self

Node Mailer Error:“Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it” in localhost

夙愿已清 提交于 2019-11-30 14:53:26
I am new to nodejs and try to send mail from nodemailer module but it has error i.e " Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it ". Here is my code:- var nodemailer = require('nodemailer'); var mailTransport = nodemailer.createTransport('SMTP', { service: 'Gmail', auth: { user: 'xxxxxxxx@gmail.com', pass: 'xxxxxxxxx', } }); mailTransport.sendMail({ from: '"ABC" <info@xxxx.example.com>', to: 'abcsss@xxx.example.com', subject: 'Test', text: 'Thank you for contact.', }, function (err) { if (err) console.error('Unable to send email: ' + err); }); To use nodemailer v1, try

Error sending email using nodemailer via Office365 smtp (MEANjs scaffold)

左心房为你撑大大i 提交于 2019-11-30 12:59:46
I'm trying to use Office365 SMTP to send email using Nodemailer (in a MEANjs scaffold), but I get the following error: [Error: 140735277183760:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:795:] I'm using the following Nodemailer options: { host: 'smtp.office365.com', port: '587', auth: { user: 'xxxx', pass: 'xxxx' }, secure: 'false', tls: { ciphers: 'SSLv3' } } Removing the tls field doesn't make a difference. What am I missing? Prasad Silva The solution was simple. The 'secure' field should be 'secureConnection'. The MEANjs

node.js nodemailer gmail error

你离开我真会死。 提交于 2019-11-30 12:12:33
Im trying to send a email using node.js - nodemailer module , my whole code looks like var http=require("http"); var nodemailer=require("nodemailer"); http.createServer(function(req,res){ res.writeHead(200, {"Content-Type": "text/plain"}); var transporter = nodemailer.createTransport('SMTP',{ service: 'gmail', auth: { user: 'myemail@gmail.com', // my mail pass: 'mypassword' } }); var mailOptions = { from: 'Fred Foo ✔ <foo@blurdybloop.com>', // sender address to: 'myemail@gmail.com', // the same mail = want to send it to myself subject: 'Hello ✔', // Subject line text: 'Hello world ✔', //