File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 26
26
To string `json:"to"`
27
27
CC string `json:"cc"`
28
28
Subject string `json:"subject"`
29
- Text string `json:"text "`
30
- HTML string `json:"html "`
29
+ BodyText string `json:"body_text "`
30
+ BodyHTML string `json:"body_html "`
31
31
Inlines []* File `json:"inlines"`
32
32
Attachments []* File `json:"attachments"`
33
33
buffer * bytes.Buffer
@@ -105,10 +105,10 @@ func (e *Email) Send(m *Message) (err error) {
105
105
m .buffer .WriteString ("\r \n " )
106
106
107
107
// Message body
108
- if m .Text != "" {
109
- m .writeText (m .Text , "text/plain" )
110
- } else if m .HTML != "" {
111
- m .writeText (m .HTML , "text/html" )
108
+ if m .BodyText != "" {
109
+ m .writeText (m .BodyText , "text/plain" )
110
+ } else if m .BodyHTML != "" {
111
+ m .writeText (m .BodyHTML , "text/html" )
112
112
} else {
113
113
// TODO:
114
114
}
You can’t perform that action at this time.
0 commit comments