浏览代码

Quick bugfix to make the text work

Jordan 11 年之前
父节点
当前提交
fa5e253c85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      email.go

+ 1 - 1
email.go

@@ -110,7 +110,7 @@ func (e *Email) Bytes() ([]byte, error) {
 			header.Set("Content-Transfer-Encoding", "quoted-printable")
 			subWriter.CreatePart(header)
 			// Write the text
-			if err := quotePrintEncode(buff, e.Html); err != nil {
+			if err := quotePrintEncode(buff, e.Text); err != nil {
 				return nil, err
 			}
 		}