Description

SetCharset is a message setting to set the charset of the email.

Examples

func TestCustomMessage(t *testing.T) {
	m := NewMessage(SetCharset("ISO-8859-1"), SetEncoding(Base64))
	m.SetHeaders(map[string][]string{
		"From":    {"[email protected]"},

func TestBase64LineLength(t *testing.T) {
	m := NewMessage(SetCharset("UTF-8"), SetEncoding(Base64))
	m.SetHeader("From", "[email protected]")
	m.SetHeader("To", "[email protected]")

SetCharset is referenced in 1 repository

github.com/go-gomail/gomail