Description

Embed embeds the images to the email.

Examples

	m.SetHeader("From", "[email protected]")
	m.SetHeader("To", "[email protected]")
	m.Embed(mockCopyFileWithHeader(m, "image1.jpg", map[string][]string{"Content-ID": {""}}))
	m.Embed(mockCopyFile("image2.jpg"))
	m.SetBody("text/plain", "Test")

	m.SetHeader("To", "[email protected]")
	m.Embed(mockCopyFileWithHeader(m, "image1.jpg", map[string][]string{"Content-ID": {""}}))
	m.Embed(mockCopyFile("image2.jpg"))
	m.SetBody("text/plain", "Test")

	m.AddAlternative("text/html", "¡Hola, señor!")
	m.Attach(mockCopyFile("test.pdf"))
	m.Embed(mockCopyFile("image.jpg"))

	want := &message{

Embed is referenced in 1 repository

github.com/go-gomail/gomail