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