v2 #2
7
email.go
7
email.go
@ -4,6 +4,7 @@ import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"net/smtp"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
@ -45,7 +46,11 @@ func (e *Email) Send() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
body := " - " + e.items[0]
|
||||
sort.Slice(e.items, func(i, j int) bool {
|
||||
return e.items[i] < e.items[j]
|
||||
})
|
||||
|
||||
body := e.items[0]
|
||||
for _, item := range e.items[1:] {
|
||||
body = body + "\r\n" + item
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||
package main
|
||||
var githash = "24a5e66"
|
||||
var githash = "b4d27e0"
|
||||
var branch = "v2"
|
||||
var buildstamp = "2023-07-31_08:12:46"
|
||||
var commits = "66"
|
||||
var version = "24a5e66-b66 - 2023-07-31_08:12:46"
|
||||
var buildstamp = "2023-07-31_08:20:10"
|
||||
var commits = "67"
|
||||
var version = "b4d27e0-b67 - 2023-07-31_08:20:10"
|
||||
|
Loading…
Reference in New Issue
Block a user