We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 072b7be commit d589949Copy full SHA for d589949
drivers/smtp.go
@@ -96,7 +96,7 @@ func (m *smtpClient) bytes(t *mail.Transmission) []byte {
96
buf := bytes.NewBuffer(nil)
97
98
for k, v := range t.Headers {
99
- buf.WriteString(fmt.Sprintf("%s: %s", k, v))
+ buf.WriteString(fmt.Sprintf("%s: %s\n", k, v))
100
}
101
102
buf.WriteString("MIME-Version: 1.0\n")
tests/mail_test.go
@@ -70,6 +70,9 @@ func GetTransmission(t *testing.T) *mail.Transmission {
70
Subject: "Test - Go Mail",
71
HTML: "<h1>Hello from Go Mail!</h1>",
72
PlainText: "Hello from Go Mail!",
73
+ Headers: map[string]string{
74
+ "X-Go-Mail": "Test",
75
+ },
76
Attachments: []mail.Attachment{
77
{
78
Filename: "gopher.png",
0 commit comments