nodeclub icon indicating copy to clipboard operation
nodeclub copied to clipboard

回帖自动发邮件提醒功能

Open luren5 opened this issue 9 years ago • 6 comments

准备在源码的基础上添加一个 回帖自动发提醒邮件的功能,但是发现源码 model/user.js 里面有一个字段 receive_reply_mail: {type: Boolean, default: false }, 但是又没找到 receive_reply_mail 在哪个地方有用到?请问是否已经有 回帖自动发提醒邮件的功能 了?

luren5 avatar Jan 18 '17 04:01 luren5

请教邮件配置问题,这是我的配置: debug: false, mail_opts: { host: 'smtp.163.com', secureConnection: true, port: 465, auth: { user: '[email protected]', pass: 'XXX' } }, 邮件依然无法收到。麻烦了

shaohao2014 avatar Jan 18 '17 05:01 shaohao2014

debug: false,

mail_opts: { host: 'smtp.126.com', secureConnection: true, port: 465, auth: { user: '[email protected]', pass: 'xxxx' }, ignoreTLS: false, },

无法收到邮件

send mail finally error { Error: Greeting never received at SMTPConnection._formatError (/root/cnode/nodeclub/node_modules/nodemailer-smtp-transport/node_modules/smtp-connection/lib/smtp-connection.js:466:15) at SMTPConnection._onError (/root/cnode/nodeclub/node_modules/nodemailer-smtp-transport/node_modules/smtp-connection/lib/smtp-connection.js:452:16) at SMTPConnection. (/root/cnode/nodeclub/node_modules/nodemailer-smtp-transport/node_modules/smtp-connection/lib/smtp-connection.js:393:18) at ontimeout (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout (timers.js:207:5) code: 'ETIMEDOUT' } { from: 'xxxx[email protected]',

tsuibin avatar Feb 03 '17 09:02 tsuibin

@tsuibin 465 是TLS端口

TakWolf avatar Feb 03 '17 09:02 TakWolf

debug: false, mail_opts: { host: 'smtp.126.com', secureConnection: true, port: 465, auth: { user: '[email protected]', pass: 'xxxx' //这个是使用的授权码 }, ignoreTLS: true, },

这个设置可以发送邮件了

tsuibin avatar Feb 03 '17 10:02 tsuibin

没报错 !但是邮箱里面没有!就是收不到邮件 mail_opts: { host: 'smtp.126.com', port: 25, auth: { user: '[email protected]', pass: 'XXXX' // 授权码 }, ignoreTLS: true, },

hefeng1208 avatar Feb 16 '17 07:02 hefeng1208

https://github.com/cnodejs/nodeclub/issues/854

邮件问题,试试这个

TakWolf avatar Feb 16 '17 08:02 TakWolf