고 메일구현 (1) 썸네일형 리스트형 고(golang) 메일보내기(google) from := "보낼사람의 지메일" password := "비밀번호" toList := []string{"받는사람 메일주소","받는사람 메일주소2"} host := "smtp.gmail.com" port := "587" msg := "Hello myungsworld" body := []byte(msg) auth := smtp.PlainAuth("", from, password, host) err := smtp.SendMail(host+":"+port, auth, from, toList, body) // handling the errors if err != nil { panic(err) } fmt.Println("따봉") 이전 1 다음