Update mail.go
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -180,7 +180,7 @@ func (e *Email) AttachFile(args ...string) (a *Attachment, err error) { | ... | @@ -180,7 +180,7 @@ func (e *Email) AttachFile(args ...string) (a *Attachment, err error) { |
| 180 | // Parameters include an io.Reader, the desired filename for the attachment, and the Content-Type. | 180 | // Parameters include an io.Reader, the desired filename for the attachment, and the Content-Type. |
| 181 | func (e *Email) Attach(r io.Reader, filename string, args ...string) (a *Attachment, err error) { | 181 | func (e *Email) Attach(r io.Reader, filename string, args ...string) (a *Attachment, err error) { |
| 182 | if len(args) < 1 && len(args) > 2 { | 182 | if len(args) < 1 && len(args) > 2 { |
| 183 | err = errors.New("Must specify a file type and number of parameters can not exceed at least two") | 183 | err = errors.New("Must specify the file type and number of parameters can not exceed at least two") |
| 184 | return | 184 | return |
| 185 | } | 185 | } |
| 186 | c := args[0] //Content-Type | 186 | c := args[0] //Content-Type | ... | ... |
-
Please register or sign in to post a comment