Closed hiqsociety closed 1 year ago
You probably want something like:
body, err := io.ReadAll(msg.Body)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s", body)
There is a full example in the mail package docs.
just figured out. thx!
great work! i've managed to get everything set up but dunno how to get the body of the msg. I know how to get the subject but how do i get the body?