nodemailer

Send email with Angular and NodeMailer

半腔热情 提交于 2019-12-05 09:19:49
how is it going? I am trying to figure out how to send an email with Angular 5 and Node.js -using nodemailer-. What I want to archive is when some user make an appointment in the page and system gets the provided email and send some information to the user when they click the button "Schedule my ....." As you'll see in appointment.component.ts , when the user click the button a variable change to "true" to display some hidden div to the user and displays as well a snackbar but nothing happens. No error in the console log nor anything. Any ideas? Here is my code below. Thanks in advance. server

smtp send mail via postfix and nodejs nodemailer connection closed

↘锁芯ラ 提交于 2019-12-05 06:58:17
问题 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

Sending emails with nodemailer

妖精的绣舞 提交于 2019-12-05 03:10:36
I'm trying to send emails from my application using nodemailer. My setup look like this: var nodemailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); var transporter = nodemailer.createTransport(smtpTransport ({ host: 'smtp.companyname.dk', secureConnection: true, port: 587, auth: { user: 'support@companyname.dk', pass: '****' } })); var mailOptions = { from: 'Olaf <ob@companyname.dk>', to: 'john@test.dk', subject: 'This is a test ', text: 'Hello world ', html: '<b>Hello world </b>' }; transporter.sendMail(mailOptions, function(error, info){ if(error){

Email send through nodemailer goes into spam for gmail

雨燕双飞 提交于 2019-12-05 00:43:01
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 EmailTemplates(); var transporter = nodemailer.createTransport(smtpConfig); var context = { username:

Post Angular form data to Node.js with Sendgrid/Nodemailer

久未见 提交于 2019-12-04 23:47:45
I have followed this example to post data from my Angular app to Node.js to post a webform to Sendgrid. This works fine after some changes and thanks a lot for the quickstart. Posting my form data to Sendgrid is working now! For this project i'm using Angular Fullstack to be able to use Node functionalities within my Angular app. However, this example has just input fields and a textarea. I want to be able to add a file (PDF, Docx, e.g) so that people can send an attachment to the recipient via Sendgrid. I have searched for a solution but couldn't find a working example. Maybe because it is

Nodemailer connection timeout error

丶灬走出姿态 提交于 2019-12-04 22:41:17
I am using nodemailer module to send mail from my nodejs application. I am getting Error: connect ETIMEDOUT xxx.xxx.xx.xxx:465 . Can any one help me in solving this. Here I am pasting my code. var transporter = nodemailer.createTransport({ service: 'Gmail', auth: { user: 'my_mail_id@gmail.com', pass: 'my_gmail_password' } }); console.log('created'); transporter.sendMail({ from: 'my_mail_id@gmail.com', to: 'my_mail_id@gmail.com', subject: 'hello world!', text: 'hello world!' }); Ivan Vasiljevic Have you looked at this answer . It turns out that in order for Google to authorize a third party

send email via nodemailer

こ雲淡風輕ζ 提交于 2019-12-04 21:31:19
I try to send email via nodemailer but getting error - TypeError: Cannot read property 'method' of undefined . It looks like sendMail function is not defined. Any advise please? P.S. This code for chatbot hosted on AWS var nodemailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); module.exports = function someName() { // create reusable transporter object using the default SMTP transport var transporter = nodemailer.createTransport(smtpTransport({ service: 'gmail', auth: { user: '7384093@gmail.com', pass: '*******' } })) // setup e-mail data with unicode

sending mail with nodemailer - email from field incorrect

不羁的心 提交于 2019-12-04 12:50:05
Trying to set up a contact form with nodemailer. Here's what's in my app.js: // EMail configuration var smtpTransport = nodemailer.createTransport("SMTP",{ service: "Gmail", auth: { user: "myemailaddress", pass: "xxx" } }); // CONTACT FORM app.get('/contact', function (req, res) { res.render("contact"); }); app.post('/contact', function (req, res) { var mailOptions = { from: req.body.email, // sender address to: "myemailaddress", // list of receivers subject: req.body.subject, // Subject line text: req.body.message, // plaintext body } smtpTransport.sendMail(mailOptions, function(error,

Nodemailer - Works locally but not on production

烈酒焚心 提交于 2019-12-04 09:46:40
https://gist.github.com/anonymous/ba82f74071cc38a0700b Before changing some settings, e.g. host and port, it was working fine locally, but just won't work on production. Anyone know why? Thanks Disable Captcha temporarily so you can mail using new server, https://accounts.google.com/b/0/displayunlockcaptcha i think this is happening because of port number and your firewall at this port is not allowing you to send mail over this port(80) . try with 587 or 465 which are actually the standard port number for SMTP. changed your code a bit /** * Created by atul on 29/3/16. */ var nodemailer =

Sending mail in node.js using nodemailer

旧城冷巷雨未停 提交于 2019-12-04 09:19:59
I am trying to send mail in node.js using Nodemailer but it shows some error like { [Error: self signed certificate in certificate chain] code: 'ECONNECTION', command: 'CONN' } My node.js code is var express = require('express'); var app = express(); var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport('smtps://something%40gmail.com:password@smtp.gmail.com'); var mailOptions = { to: 'stevecameron2016@gmail.com', subject: 'Hello ?', text: 'Hello world ??', html: '<b>Hello world ??</b>' }; transporter.sendMail(mailOptions, function(error, info){ if(error){ return