Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.newRegistration=function(parametros,callback)
- {
- var mailOptions =
- {
- from: "<myemailingoogle@gmail.com>",//my email
- to: parametros.useremail,//user email
- subject: 'Welcome '+parametros.useremail+'.',
- html: '<br><b>Hello</b><br>'+ // html
- };
- var smtpTransport = nodemailer.createTransport("SMTP",
- {
- service: "Gmail",
- secureConnection: true,
- auth:
- {
- user: "myemailingoogle@gmail.com",
- pass: "7ftera359c28a",
- },
- });
- smtpTransport.sendMail(mailOptions, function(err, response)
- {
- if(err)
- {
- smtpTransport.close();
- console.warn(err);
- return callback(err,null);
- }else{
- smtpTransport.close();
- return callback(null,response);
- }
- });
- }
- mail mymailin@gmail.com
- Cc: // press enter
- Subject: Welcome
- Hello Mail.
- // Ctrl+D
- smtp: '535 5.7.8 Error: authentication failed: generic failuren'
- telnet localhost 25
- ehlo localhost
- 250-mydomain.com
- 250-PIPELINING
- 250-SIZE 10240000
- 250-VRFY
- 250-ETRN
- 250-STARTTLS
- 250-AUTH PLAIN LOGIN
- 250-AUTH=PLAIN LOGIN
- 250-ENHANCEDSTATUSCODES
- 250-8BITMIME
- 250 DSN
- mail to: myuserin@gmail.com
- 501 5.5.4 Syntax: MAIL FROM:<address>
- mail from: info@mydomain.com
- 250 2.1.0 Ok
- rcpt to: myuserin@gmail.com
- 451 4.3.0 <myuserin@gmail.com>: Temporary lookup failure
- data
- 554 5.5.1 Error: no valid recipients
- AUTH LOGIN
- 503 5.5.1 Error: MAIL transaction in progress
- 220 mydomain.com ESMTP Postfix (Ubuntu)
- ehlo localhost
- 250-mydomain.com
- 250-PIPELINING
- 250-SIZE 10240000
- 250-VRFY
- 250-ETRN
- 250-STARTTLS
- 250-AUTH PLAIN LOGIN
- 250-AUTH=PLAIN LOGIN
- 250-ENHANCEDSTATUSCODES
- 250-8BITMIME
- 250 DSN
- AUTH LOGIN
- 334 VXNlcm5hbWU6
- UbuntuUser
- 535 5.7.8 Error: authentication failed: another step is needed in authentication
- 220 mydomain.com ESMTP Postfix (Ubuntu)
- ehlo localhost
- 250-mydomain.com
- 250-PIPELINING
- 250-SIZE 10240000
- 250-VRFY
- 250-ETRN
- 250-STARTTLS
- 250-AUTH PLAIN LOGIN
- 250-AUTH=PLAIN LOGIN
- 250-ENHANCEDSTATUSCODES
- 250-8BITMIME
- 250 DSN
- auth login
- 334 VXNlcm5hbWU6
- root
- 334 UGFzc3dvcmQ6
- rootPassword
- 535 5.7.8 Error: authentication failed: another step is needed in authentication
- Jun 20 15:50:16 myname postfix/smtpd[12528]: warning: localhost[127.0.0.1]: SASL login authentication failed: another step is needed in authentication
- var email = require("emailjs");
- postfixSend = function postfixSend(emailInfo, callback) {
- var server = email.server.connect({
- user: "yourEmailAccountUser",
- password: "yourPassword",
- host: "localhost",
- ssl: false
- });
- server.send({
- text: emailInfo.msg,
- from: emailInfo.from,
- to: emailInfo.to,
- subject: emailInfo.subject
- }, function(err, message) {
- callback(err);
- });
- }
- exports.postfixSend = postfixSend;
- pwcheck_method: auxprop
- auxprop_plugin: sasldb
- mech_list: PLAIN LOGIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement