This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Change from header in email,
fixes
#765
tags/v1.2.0-rc1
Peter
11 years ago
parent
b231b8c927
commit
2321b4b272
2 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
conf/app.ini
+1
-2
modules/mailer/mailer.go
+ 1
- 1
conf/app.ini
View File
@@ -98,7 +98,7 @@ SUBJECT = %(APP_NAME)s
HOST =
; Do not verify the certificate of the server. Only use this for self-signed certificates
SKIP_VERIFY =
; Mail from address
; Mail from address
. This can be just an email address, or the "Name" <email@example.com> format (including the quotes and brackets)
FROM =
; Mailer user name and password
USER =
+ 1
- 2
modules/mailer/mailer.go
View File
@@ -35,8 +35,7 @@ func (m Message) Content() string {
}
// create mail content
content := "From: \"" + m.From + "\" <" + m.User +
">\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
content := "From: " + m.From +"\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
return content
}
Write
Preview
Loading…
Cancel
Save