1

When I'm in development mode, Email.send prints the email contents in the console. It's great if I want to test whether the email works, but makes things difficult if emails are long and I'd like to debug something else.

Is there an easy way to disable logging of email contents?

4

1 回答 1

1

控制台上的东西纯粹是为了开发。如果您传递MAIL_URL电子邮件数据的环境变量将不再打印到控制台,也许类似的东西smtp://USERNAME:PASSWORD@127.0.0.1:25可能会诱使它工作。

将其打印到控制台的部分的确切来源devModeSendpackages/email/email.js. 它不发送任何内容,如果未配置电子邮件主机,它只会打印到控制台。

于 2013-10-01T14:18:30.390 回答