Skip to content

Commit

Permalink
update exemple
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoidit committed Apr 22, 2020
1 parent e0efa7f commit b6bbc0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exemple/exemple.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func main() {
log.Fatalln(err)
}
var recipients = [][]string{
[]string{"[email protected]", "[email protected]"},
[]string{"[email protected]", "[email protected]"},
{"[email protected]", "[email protected]"},
{"[email protected]", "[email protected]"},
}
var files = []string{
"file1.jpeg",
Expand All @@ -26,10 +26,10 @@ func main() {
var messages = make([]*gosmtp.Message, 0)
for _, recs := range recipients {
var msg = gosmtp.NewMessage().
SetTO(recs).
SetTO(recs...).
SetSubject("hello world").
SetText("something text").
AddAttaches(files)
AddAttaches(files...)
messages = append(messages, msg)
}
client.AddMessage(messages...)
Expand Down

0 comments on commit b6bbc0f

Please sign in to comment.