Description

Unencoded can be used to avoid encoding the body of an email. The headers will still be encoded using quoted-printable encoding.

Examples

func TestUnencodedMessage(t *testing.T) {
	m := NewMessage(SetEncoding(Unencoded))
	m.SetHeaders(map[string][]string{
		"From":    {"[email protected]"},

	m.SetHeader("From", "[email protected]")
	m.SetHeader("To", "[email protected]")
	m.SetBody("text/plain; format=flowed", "¡Hola, señor!", SetPartEncoding(Unencoded))
	m.AddAlternative("text/html", "¡Hola, señor!")

		w.err = f(wc)
		wc.Close()
	} else if enc == Unencoded {
		w.err = f(subWriter)
	} else {

Unencoded is referenced in 1 repository

github.com/go-gomail/gomail