I want to send a image in email body using go lang.
Used this package from github
https://github.com/scorredoira/email
err := m.Attach("image.png")
if err1 != nil {
fmt.Println(err1)
}
Now i am able to send image file as attachment but my need is to send a image file in email body.
Thanks in advance.
You can use Gomail (I'm the author). Have a look at the Embed method which allow you to embed images in the email body: