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
a80feb00
Commit
a80feb00
authored
Jan 25, 2016
by
miraclesu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix utils mail from field can't including Chinese bug
parent
57d522a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mail.go
utils/mail.go
+1
-2
No files found.
utils/mail.go
View file @
a80feb00
...
...
@@ -231,11 +231,10 @@ func (e *Email) Send() error {
if
e
.
From
==
""
||
len
(
to
)
==
0
{
return
errors
.
New
(
"Must specify at least one From address and one To address"
)
}
from
,
err
:=
mail
.
ParseAddress
(
e
.
From
)
from
,
err
:=
mail
.
ParseAddress
(
e
.
Username
)
if
err
!=
nil
{
return
err
}
e
.
From
=
from
.
String
()
raw
,
err
:=
e
.
Bytes
()
if
err
!=
nil
{
return
err
...
...
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