Send Email By Nodemailer
Send Email By Nodemailer.
使用Nodemailer
发送邮件。
作者 : 小牧COOL
博客 : xiaomucool.com
QQ群 : 215259343
官网 : www.bingblue.com
- name: Send Mail 发送邮件
uses: bingblue/send-nodemailer@master
with:
# 账号
user: '${{ secrets.MAIL_USER }}'
# 密码
pass: '${{ secrets.MAIL_PASS }}'
# Host,在邮箱的设置里可以找到
host: 'smtp.exmail.qq.com'
# 端口
port: 465
# 是否开启SSL
secure: true
# 发送者
from: 'Your Name <youremail@gmail.com>'
# 收件人
to: someone@gmail.com,sometwo@outlook.com
# 主题
subject: 'this is email subject'
# Use html file prefix [file://],使用HTML文件,已[file://]开头
html: file://./path/result.html
# Or use html script,或者使用HTML代码片段
# html: '<p>this is content</p>'
Usage docs for Nodemailer are here.
更多Nodemailer
用法请看官方文档。
The scripts and documentation in this project are released under the MIT License
Powered by : 小牧COOL