"Content-Type: text/plain; charset=UTF-8", "Content-Transfer-Encoding: quoted-printable", "", "Banana", "--" + boundary, "Content-Type: text/html; charset=UTF-8", "Content-Transfer-Encoding: quoted-printable", "", "<header>banana</header>", "--" + boundary + "--", "", })) }) It("includes headers in the response if there are any", func() { msg.Headers = append(msg.Headers, "X-ClientID: banana") parts := strings.Split(msg.Data(), "\n") boundary := msg.Boundary() Expect(parts).To(ConsistOf([]string{ "From: [email protected]", "To: [email protected]", "Subject: Super Urgent! Read Now!", "X-ClientID: banana", "Content-Type: multipart/alternative; boundary=" + boundary, "Date: " + time.Now().Format(time.RFC822Z), "Mime-Version: 1.0", "", "--" + boundary, "Content-Type: text/plain; charset=UTF-8", "Content-Transfer-Encoding: quoted-printable",