<i id='QSoAV'><tr id='QSoAV'><dt id='QSoAV'><q id='QSoAV'><span id='QSoAV'><b id='QSoAV'><form id='QSoAV'><ins id='QSoAV'></ins><ul id='QSoAV'></ul><sub id='QSoAV'></sub></form><legend id='QSoAV'></legend><bdo id='QSoAV'><pre id='QSoAV'><center id='QSoAV'></center></pre></bdo></b><th id='QSoAV'></th></span></q></dt></tr></i><div id='QSoAV'><tfoot id='QSoAV'></tfoot><dl id='QSoAV'><fieldset id='QSoAV'></fieldset></dl></div>
  1. <small id='QSoAV'></small><noframes id='QSoAV'>

      <tfoot id='QSoAV'></tfoot>
        <bdo id='QSoAV'></bdo><ul id='QSoAV'></ul>
    1. <legend id='QSoAV'><style id='QSoAV'><dir id='QSoAV'><q id='QSoAV'></q></dir></style></legend>

      NodeMailer 登录无效

      NodeMailer Invalid Login(NodeMailer 登录无效)
        <tbody id='zbgSX'></tbody>
    2. <tfoot id='zbgSX'></tfoot>
    3. <small id='zbgSX'></small><noframes id='zbgSX'>

      <legend id='zbgSX'><style id='zbgSX'><dir id='zbgSX'><q id='zbgSX'></q></dir></style></legend>

      • <i id='zbgSX'><tr id='zbgSX'><dt id='zbgSX'><q id='zbgSX'><span id='zbgSX'><b id='zbgSX'><form id='zbgSX'><ins id='zbgSX'></ins><ul id='zbgSX'></ul><sub id='zbgSX'></sub></form><legend id='zbgSX'></legend><bdo id='zbgSX'><pre id='zbgSX'><center id='zbgSX'></center></pre></bdo></b><th id='zbgSX'></th></span></q></dt></tr></i><div id='zbgSX'><tfoot id='zbgSX'></tfoot><dl id='zbgSX'><fieldset id='zbgSX'></fieldset></dl></div>
            <bdo id='zbgSX'></bdo><ul id='zbgSX'></ul>

                本文介绍了NodeMailer 登录无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我是 node.js 编程的新手.我正在使用 nodemailer 模块发送电子邮件.

                I am new to node.js programming .I am using nodemailer module for sending emails.

                const nodemailer = require ('nodemailer'),
                credentials=require('./credentials.js');
                var mailTransport=nodemailer.createTransport({
                    service:'Gmail',
                    auth: {
                        user : credentials.gmail.user,
                        pass : credentials.gmail.password,
                    }
                });
                function sendMail(mail_id){
                    mailTransport.sendMail({
                        from: ' "my name" <myname@gmail.com>',
                        to : mail_id,   //user@gmail.com
                        subject : 'Hello',
                        text: "Hello How do u do ?",
                    },function(err,info){
                        if(err){
                            console.log('Unable to send the mail :'+err.message);
                        }
                        else{
                            console.log('Message response : '+info.response);
                        }
                    });
                }
                exports.sendMail=sendMail;
                

                这是我向不同用户发送电子邮件的程序.但我得到 Invalid Login .我不知道为什么会这样.我是 node.js 和服务器端脚本的新手.
                我正在使用我的 gmail 用户名和密码作为凭据.
                请帮帮我.

                This is my program for sending emails to different users. But I am getting Invalid Login . I don't have any idea why this is coming . I am new to node.js and server side scripting.
                I am using my gmail username and password for credentials.
                Please help me.

                推荐答案

                您是否仔细检查了您的登录凭据?您是否还仔细检查了您的发件人"地址以匹配您的电子邮件?

                Did you double-check your login credentials? Also did you double-check your "from" adress to match your email?

                我在 3 周前使用 nodemailer 进行了一些测试,并使用了 github 页面上给出的 gmail 示例,它就像一个魅力:

                I used the nodemailer for some tests 3 weeks ago with the gmail example given on the github page and it worked like a charm:

                https://github.com/andris9/Nodemailer

                无效登录表示输入错误/错误的凭据.

                Invalid login indicates mistyped/wrong credentials.

                这篇关于NodeMailer 登录无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)

                  <tbody id='2SEJk'></tbody>
                  <bdo id='2SEJk'></bdo><ul id='2SEJk'></ul>
                  <i id='2SEJk'><tr id='2SEJk'><dt id='2SEJk'><q id='2SEJk'><span id='2SEJk'><b id='2SEJk'><form id='2SEJk'><ins id='2SEJk'></ins><ul id='2SEJk'></ul><sub id='2SEJk'></sub></form><legend id='2SEJk'></legend><bdo id='2SEJk'><pre id='2SEJk'><center id='2SEJk'></center></pre></bdo></b><th id='2SEJk'></th></span></q></dt></tr></i><div id='2SEJk'><tfoot id='2SEJk'></tfoot><dl id='2SEJk'><fieldset id='2SEJk'></fieldset></dl></div>
                    • <small id='2SEJk'></small><noframes id='2SEJk'>

                        <tfoot id='2SEJk'></tfoot>

                          <legend id='2SEJk'><style id='2SEJk'><dir id='2SEJk'><q id='2SEJk'></q></dir></style></legend>