Description

Attach attaches the files to the email.

Examples

	m.SetHeader("From", "[email protected]")
	m.SetHeader("To", "[email protected]")
	m.Attach(mockCopyFile("/tmp/test.pdf"))

	want := &message{

	m.SetHeader("To", "[email protected]")
	m.SetBody("text/plain", "Test")
	m.Attach(mockCopyFile("/tmp/test.pdf"))

	want := &message{

	name, copy := mockCopyFile("/tmp/test.pdf")
	rename := Rename("another.pdf")
	m.Attach(name, copy, rename)

	want := &message{

Attach is referenced in 1 repository

github.com/go-gomail/gomail