Bo-Yi Wu
a1901fdb4a
fix misspell ( #1996 )
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Jonas Östanbäck
4368e6d0ac
Send mails as HTML as default. Setting for send as plain text. ( #1648 )
* Send mails as HTML as default. Setting for send as plain text.
* Add new option SendAsPlainText. remove EnableHTMLAlternative
* Send HTML mails as default
* Add html check if html2text should be performed
* Send only multipart or plain. Add deprication warning for ENABLE_HTML_ALTERNATIVE
* Still use ENABLE_HTML_ALTERNATIVE for backward compatibility
* Changed to not ignore html2text errors
8 years ago
Ethan Koenig
9c781e8fd4
Fix typos in models/ and modules/ ( #1248 )
9 years ago
Gabriel Jackson
3e7f8ec9d3
Cleanup log messaging
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
9 years ago
Bo-Yi Wu
83e210669c
fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
9 years ago
Philip Couling
dec7eee349
Implement sendmail ( #355 )
* Implemented sendmail. This piggybacks on existing configuration to keep the change simple
* Changed privicy of new sendSMTP and sendSendmail functions
* Fixed Lint errors
* Seperated SMTP and sendmail into their own senders
* Making new structs private as they should not be used externally now
* Added sendmail setting to ini file
* Minor code cleanup
9 years ago
Lunny Xiao
bc6359a917
Golint fixed for modules/mailer
9 years ago
Sandro Santilli
cb1b3cc148
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
9 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
9 years ago
Unknwon
f91166335e
Web editor: fix cannot create new file in subdirectory
9 years ago
Unknwon
7b4e810eb5
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Unknwon
dcef6a4c25
#2954 minor fix for when to set HTML alternative
9 years ago
Unknwon
ede3242712
#2954 use text/plain as default email content format
9 years ago
Sandro Santilli
1383edfba2
Do not write HTML in text/plain mail part ( #2954 )
* Do not write HTML in text/plain mail part
Fixes #2928
* Pass text/plain first, text/html second
* Do not send plain/text email if html2text failed (untested)
9 years ago
Unknwon
4eb48337da
Minor fix for #2660
10 years ago
Josh Frye
51b0fc9c00
Test mailer button. Addresses #1531
10 years ago
Unknwon
7b69942300
#2334 strip whitespace for migrate URL
Also fix a possible race condition while install
10 years ago
Unknwon
d398777e08
Make markdown as an independent module
10 years ago
Josh Frye
e1207eaf96
Fix issue email formatting. Addresses #2331
10 years ago
Unknwon
753f45a333
make mailer log more verbose
10 years ago
Unknwon
caac2f9b19
fix #1829 and fix #890
10 years ago
Unknwon
f066c2f1d8
fix import path, fix #1782
10 years ago
Unknwon
2374b320dc
#1525 Triggere mailer for admin created accounts
10 years ago
Unknwon
dd571a3573
finish all new template for current ones
10 years ago
Unknwon
1f13c837c0
finish new auth e-mails
10 years ago
Unknwon
a75db8f155
user gomail and new activate account email tpl
- #1496 : fallback plain text
- #1002 : add date header
- #913 : fix encoding of header
10 years ago
Unknwon
2539fa8280
simplify names
10 years ago
Unknwon
a49dd8b85e
#1649 Using commas to delineate emails
10 years ago
Hongcai Deng
0289bc40c4
fix syntax error
10 years ago
Hongcai Deng
8d69fc1e6f
implemented #1528
10 years ago
Louis Matthijssen
ce248c4b2d
Fix missing space in issue emails subject
10 years ago
Unknwon
bbf8bdf4ae
minor fix on #1517
10 years ago
Yixin Hao
96b9c8a69a
Added supported of 'AUTH LOGIN'
i've been missing a 'r' in previous, lol~
10 years ago
Unknwon
36fa23ed16
WIP: create PR - choose branch
10 years ago
Unknwon
3d1db7b893
add config options for HELO
10 years ago
Unknwon
4ec2e465f9
#1067 : Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
11 years ago
无闻
dc55bb4cae
Merge pull request #943 from diseaz/mailer-client-cert
Use client certificate for SMTP over TLS
11 years ago
Gogs
95b1c32f95
add error for hello func
11 years ago
Gogs
187c114e53
Fix: 504 5.5.2 <localhost>: Helo command rejected
11 years ago
Dmitry Azhichakov
e105193e74
Fix "forcing" client certificate for SMTP
11 years ago
Dmitry Azhichakov
0c2fbf5706
New feature: SMTP connection may use client certificate.
New config keys in [mailer] section:
- CERT_FILE: path to a certificate file.
- KEY_FILE: path to a key file.
11 years ago
Unknwon
bd555551ce
fix #801
11 years ago
无闻
030b3d751e
Merge pull request #766 from phsmit/correct_from
Correct usage of FROM in email creation
11 years ago
无闻
a18decf4cc
Merge pull request #755 from phsmit/multiple_emails
Multiple emails
11 years ago
Peter
c884ecfea1
Parse the from string to extract the email address
11 years ago
Peter
edbe1de026
Remove unused "User" member of Message Struct and fix bounce address
The User member of a message is not needed anymore.
The from that is send to the server, should always be the "system" from. This is also called the Bounce address http://en.wikipedia.org/wiki/Bounce_address
11 years ago
Peter
2321b4b272
Change from header in email, fixes #765
11 years ago
Peter
007cf33e88
Remove standard mailer port lines
This lines got committed by accident. They do actually nothing, as SplitHostPort will give an error if port is not given.
11 years ago
Unknwon
b231b8c927
update locale and mirror code format
11 years ago
Peter
eca42bcb44
Prefer CRAM-MD5 over PLAIN authentication
11 years ago