1

SmtpClient.try_send() を使用してメールを送信しようとしています。このコードは、opa が node.js バックエンドに切り替わる前に機能していました。

import stdlib.web.mail.smtp.client
import stdlib.web.mail

function start()
{
        Email.email from = {name:some("name"), address:{local:"contact", domain:"hello.com"}}
        Email.email to = {name:some("name"), address:{local:"contact", domain:"hello.com"}}
        Email.content content = {text : "This is Great!"}
        SmtpClient.try_send(from, to, "subject",content, Email.default_options)
        <>Hello</>
}

Server.start(
   {port:8092, netmask:0.0.0.0, encryption: {no_encryption}, name:"test"},
   [
     {page: start, title: "test" }
   ]
)

しかし、今では次のエラーで失敗します:

Test serving on http://ks3098156.kimsufi.com:8092

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: write EPIPE
    at errnoException (net.js:646:11)
    at Object.afterWrite [as oncomplete] (net.js:480:18)

どうしたの ?

ありがとう、

4

1 に答える 1

1

あなたは試してみることができますか:

SmtpClient.try_send(from, to, "subject", content, { Email.default_options with to:[to] })

于 2012-09-04T16:31:18.693 に答える