better email content
This commit is contained in:
parent
4259c8d901
commit
8e606aeb5a
@ -126,10 +126,10 @@ exports.makeHeader = function(data,appversion){
|
|||||||
|
|
||||||
exports.SendLog = function(transporter,mailfrom,mailto,successNum,totalNum,content) {
|
exports.SendLog = function(transporter,mailfrom,mailto,successNum,totalNum,content) {
|
||||||
transporter.sendMail({
|
transporter.sendMail({
|
||||||
from: mailfrom+'" Genshin CloudGame Helper"', //邮件来源
|
from: `"Genshin Cloud Game Helper" <${mailfrom}>`, //邮件来源
|
||||||
to: mailto, //邮件发送到哪里,多个邮箱使用逗号隔开
|
to: mailto, //邮件发送到哪里,多个邮箱使用逗号隔开
|
||||||
subject: `今日已签到${successNum}/${totalNum}名用户`, // 邮件主题
|
subject: `今日已签到${successNum}/${totalNum}名用户`, // 邮件主题
|
||||||
text: '☺️😍😎', // 存文本类型的邮件正文
|
text: '', // 存文本类型的邮件正文
|
||||||
html: `${content}` // html类型的邮件正文
|
html: `${content}` // html类型的邮件正文
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user