[enh] add cc for mail
This commit is contained in:
@@ -23,6 +23,7 @@ export async function sendMail(conf: ConfMail, subject: string, html: string) {
|
|||||||
let info = await transporter.sendMail({
|
let info = await transporter.sendMail({
|
||||||
from: conf.from,
|
from: conf.from,
|
||||||
to: conf.to,
|
to: conf.to,
|
||||||
|
cc: conf.cc,
|
||||||
subject,
|
subject,
|
||||||
html
|
html
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -44,5 +44,6 @@ export interface ConfMail {
|
|||||||
username: string
|
username: string
|
||||||
apikey: string
|
apikey: string
|
||||||
from: string
|
from: string
|
||||||
|
cc?: string
|
||||||
to: string
|
to: string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user