()
| 140 | var m *gomail.Message |
| 141 | |
| 142 | func ExampleSetCopyFunc() { |
| 143 | m.Attach("foo.txt", gomail.SetCopyFunc(func(w io.Writer) error { |
| 144 | _, err := w.Write([]byte("Content of foo.txt")) |
| 145 | return err |
| 146 | })) |
| 147 | } |
| 148 | |
| 149 | func ExampleSetHeader() { |
| 150 | h := map[string][]string{"Content-ID": {"<foo@bar.mail>"}} |