镜像自地址
https://github.com/betterfor/action-send-mail.git
已同步 2026-11-20 16:37:04 +00:00
Update main.go
这个提交包含在:
2
main.go
2
main.go
@ -55,6 +55,7 @@ func main() {
|
|||||||
|
|
||||||
if len(attachments) != 0 {
|
if len(attachments) != 0 {
|
||||||
for _, a := range strings.Split(attachments, ",") {
|
for _, a := range strings.Split(attachments, ",") {
|
||||||
|
fmt.Println("attach file: ", a)
|
||||||
m.Attach(a)
|
m.Attach(a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,6 +80,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(time.Now(), "send mail error: ", err)
|
log.Fatal(time.Now(), "send mail error: ", err)
|
||||||
}
|
}
|
||||||
|
fmt.Println("Send Success")
|
||||||
}
|
}
|
||||||
|
|
||||||
func getBody(bodyOrFile string, convertMarkdown bool) string {
|
func getBody(bodyOrFile string, convertMarkdown bool) string {
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户