Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
fc074199
Commit
fc074199
authored
Oct 10, 2014
by
TossPig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mail.go
parent
d69eee23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mail.go
utils/mail.go
+1
-1
No files found.
utils/mail.go
View file @
fc074199
...
...
@@ -180,7 +180,7 @@ func (e *Email) AttachFile(args ...string) (a *Attachment, err error) {
// Parameters include an io.Reader, the desired filename for the attachment, and the Content-Type.
func
(
e
*
Email
)
Attach
(
r
io
.
Reader
,
filename
string
,
args
...
string
)
(
a
*
Attachment
,
err
error
)
{
if
len
(
args
)
<
1
&&
len
(
args
)
>
2
{
err
=
errors
.
New
(
"Must specify
a
file type and number of parameters can not exceed at least two"
)
err
=
errors
.
New
(
"Must specify
the
file type and number of parameters can not exceed at least two"
)
return
}
c
:=
args
[
0
]
//Content-Type
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment