meteor 中如何正确使用 sendcloud?

2016-06-20 08:36:57 +08:00
 QuoniamYIF

注册 sendcloud 之后

我在正确设置了 process.env.MAIL_URL 之后,没有再添加任何代码

使用的是 ian:accounts-ui-bootstrap-3 包,点击忘记密码后出现如下问题:

I20160620-00:39:27.760(8)? Exception while invoking method 'forgotPassword' DeliveryError: Message delivery failed: 553 template_validate not match, reason:unequal content
I20160620-00:39:27.762(8)?     at Object.Future.wait (/home/quoniam/.meteor/packages/meteor-tool/.1.3.2_4.10vjklo++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:420:15)
I20160620-00:39:27.762(8)?     at smtpSend (packages/email/email.js:89:1)
I20160620-00:39:27.762(8)?     at Object.Email.send (packages/email/email.js:188:1)
I20160620-00:39:27.763(8)?     at AccountsServer.Accounts.sendResetPasswordEmail (packages/accounts-password/password_server.js:577:9)
I20160620-00:39:27.763(8)?     at [object Object].forgotPassword (packages/accounts-password/password_server.js:516:12)
I20160620-00:39:27.763(8)?     at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1704:12)
I20160620-00:39:27.763(8)?     at packages/ddp-server/livedata_server.js:711:19
I20160620-00:39:27.763(8)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160620-00:39:27.764(8)?     at packages/ddp-server/livedata_server.js:709:40
I20160620-00:39:27.764(8)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160620-00:39:27.764(8)?     - - - - -
I20160620-00:39:27.764(8)?     at SMTPConnectionPool._onConnectionReady (/home/quoniam/.meteor/packages/email/.1.0.12.eitj2++os+web.browser+web.cordova/npm/node_modules/simplesmtp/lib/pool.js:287:21)
I20160620-00:39:27.764(8)?     at SMTPClient.emit (events.js:98:17)
I20160620-00:39:27.765(8)?     at SMTPClient._actionStream (/home/quoniam/.meteor/packages/email/.1.0.12.eitj2++os+web.browser+web.cordova/npm/node_modules/simplesmtp/lib/client.js:946:14)
I20160620-00:39:27.765(8)?     at SMTPClient._onData (/home/quoniam/.meteor/packages/email/.1.0.12.eitj2++os+web.browser+web.cordova/npm/node_modules/simplesmtp/lib/client.js:329:29)
I20160620-00:39:27.765(8)?     at CleartextStream.emit (events.js:95:17)
I20160620-00:39:27.765(8)?     at CleartextStream.<anonymous> (_stream_readable.js:765:14)
I20160620-00:39:27.765(8)?     at CleartextStream.emit (events.js:92:17)
I20160620-00:39:27.766(8)?     at emitReadable_ (_stream_readable.js:427:10)
I20160620-00:39:27.766(8)?     at _stream_readable.js:420:7
I20160620-00:39:27.766(8)?     at process._tickCallback (node.js:458:13)

显示的是内容不相等的问题?我想请教一下该如何解决这个问题?

1941 次点击
所在节点    Node.js
1 条回复
QuoniamYIF
2016-06-20 11:46:58 +08:00
解决方法:

通过`Accounts.emailTemplates`进行模板的相关设置

[详情见链接]( http://docs.meteor.com/api/passwords.html#Accounts-emailTemplates)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/286920

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX