Golang multiple recipients with gomail.v2
问题 The only way that I've used to send emails via gomail.v2 is using the Send() function to each email in a for loop. But I need to show the other email addresses those the same email have been sent. for _, recipient := range os.Args[3:] { mail.SetAddressHeader("From", "my@mail.com", "My Name") mail.SetHeader("To", recipient) mail.SetHeader("Subject", os.Args[2]) mail.SetBody("text/html", os.Args[1]) if err := dialer.DialAndSend(mail); err != nil { log.Printf("Could not send email to %q: %v",