I am using this to send smtp
. It works for one receiver but I'd like to have multiple receivers. I have tried the following:
func sendemail(body string) {
from := "smtpemail"
pass := "pass"
to := "a@gmail.com,b@gmail.com"
....
}
I have also tried:
to := "\"a@gmail.com\",\"b@gmail.com\""
and:
to := []string{"a@gmail.com","b@gmail.com"}
None of them work. Sorry it is so simple, I just begin to work with golang
.