V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
QuoniamYIF
V2EX  ›  Node.js

meteor 中如何正确使用 sendcloud?

  •  
  •   QuoniamYIF · 2016-06-20 08:36:57 +08:00 · 1945 次点击
    这是一个创建于 3086 天前的主题,其中的信息可能已经有所发展或是发生改变。

    注册 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)
    

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

    QuoniamYIF
        1
    QuoniamYIF  
    OP
       2016-06-20 11:46:58 +08:00
    解决方法:

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

    [详情见链接]( http://docs.meteor.com/api/passwords.html#Accounts-emailTemplates)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   921 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:28 · PVG 04:28 · LAX 12:28 · JFK 15:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.