【文件属性】:
文件名称:mailer:通过链接的电子邮件帐户发送电子邮件的简单网络服务
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-31 12:24:13
JavaScript
邮递员
通过链接的电子邮件帐户发送电子邮件的简单网络服务。
用法
使用前,必须通过npm install安装包,然后创建一个config.json文件,格式如下:
{
"service" : "gmail" ,
"auth" : {
"user" : username // Your Gmail username,
"pass" : password //Your Application-Specific Gmail Password
}
}
grunt命令允许您启动一个启用了 watch 的服务器,在对其进行更改后重新加载。 grunt clean命令删除所有日志
使用node server.js启动服务器
服务器接受将Content-Type设置为application/json POST 请求Content-Type应该以这种方式构造:
{
【文件预览】:
mailer-master
----server.js(977B)
----Gruntfile.js(1KB)
----test.js(0B)
----LICENSE(18KB)
----README.md(1014B)
----.gitignore(560B)
----package.json(927B)