当我试图使用本地网络中的nodemailer发送邮件时,出现了错误:
*Greeting never received
at SMTPConnection._formatError (C:\Users\PI_TEAM\Desktop\node_modules\nodemailer\lib\smtp-connection\index.js:784:19)
at SMTPConnection._onError (C:\Users\PI_TEAM\Desktop\node_modules\nodemailer\lib\smtp-connection\index.js:770:20)
我有一条错误消息:"errorMessage":“找不到模块'nodemailer'”
我在谷歌上搜索,上面写着安装nodemailer。有人能告诉我在哪里安装这个模块吗?我是兰博达的新手。
我的Lambda函数如下:
var aws = require("aws-sdk");
var nodemailer = require("nodemailer");
var ses = new aws.SES();
var s3 = new aws.S3();
exports.handler = (event, context,
我有个错误。我使用nodemailer从我的Firebase应用程序发送电子邮件。
这就是我的代码看起来的样子:
const functions = require('firebase-functions');
const admin = require("firebase-admin");
const nodemailer = require('nodemailer');
admin.initializeApp();
//THESE SETTINGS WORK ON LOCAL AND LIVE. BUT I DONT WANT TO US
我已经在我的linux机器中安装了本地smtp服务器。下面的命令工作正常,并成功地从test@接收到邮件。
echo “THIS IS A TEST EMAIL” | mail -s "This is subject" xxxx@gmail.com
虽然我需要使用nodemailer发送邮件,但我已经配置如下,
const transporter = nodemailer.createTransport({
host:"smtp.<ourserver>.com",
secure:false
});
我已经将一个node.js应用程序部署到node.js,但是无法从我的应用程序中看到完整的console.log语句。我正在使用:
heroku logs
虽然显示了一些日志记录,但看起来不是完整的日志。是否有可以从已部署的应用程序发送电子邮件的node.js包?电子邮件在我的本地机器btw上运行良好。
电子邮件代码:
console.log('try to send email hold on');
var nodemailer = require("nodemailer");
var smtpTransport = nodemailer.cr
所以我用Heroku部署了我的网站组合,但我的联系人表单(使用nodemailer)不起作用。这是我的index.js的代码:
var express = require('express');
var router = express.Router();
var nodemailer = require('nodemailer');
var cors = require('cors');
const creds = require('./config');
var transport = {
host: 'sm
我试图使用nodemailer的邮件api发送邮件,这些api来自microsoft azure上的速递js服务器。它在本地机器上取得了成功,但在蔚蓝服务器(远程)上却没有成功。有什么想法吗?
var mail = require("nodemailer").mail;
mail({from: "from@gmail.com", // sender address
to: "to@gmail.com", // list of receivers
subject: "subject", // Subj