Jonas Östanbäck
01d7189c2d
Fix slice out of bounds error in mailer ( #2479 )
2017-09-11 14:33:28 +08:00
Bo-Yi Wu
b7812be33a
fix misspell ( #1996 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-18 08:30:04 +08:00
Jonas Östanbäck
d9a8eff2de
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
2017-06-07 09:14:31 +08:00
Ethan Koenig
021904e4e6
Fix typos in models/ and modules/ ( #1248 )
2017-03-15 08:52:01 +08:00
Gabriel Jackson
bf6f61cc69
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.
2017-02-02 15:24:18 +01:00
Bo-Yi Wu
6510e57758
fix gofmt error
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-30 20:41:10 +01:00
Philip Couling
d4924d45d6
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
2016-12-25 14:55:22 +01:00
Lunny Xiao
2e565bc1c4
Golint fixed for modules/mailer
2016-11-25 09:44:04 +08:00
Sandro Santilli
4247304f5a
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
2016-11-10 17:24:48 +01:00
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
2016-11-03 10:29:56 -02:00
Unknwon
62b0dc4853
Web editor: fix cannot create new file in subdirectory
2016-08-29 00:10:21 -07:00
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
2016-07-16 00:36:39 +08:00
Unknwon
0240f520ab
#2954 minor fix for when to set HTML alternative
2016-05-30 01:50:20 -07:00
Unknwon
8df3ba96f3
#2954 use text/plain as default email content format
2016-05-30 01:32:01 -07:00
Sandro Santilli
d35a1c30f4
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)
2016-05-30 01:18:49 -07:00
Unknwon
baaf6046a1
Minor fix for #2660
2016-02-24 23:59:17 -05:00
Josh Frye
c27038e392
Test mailer button. Addresses #1531
2016-02-24 09:48:05 -05:00
Unknwon
926e75d721
#2334 strip whitespace for migrate URL
...
Also fix a possible race condition while install
2016-02-20 17:32:34 -05:00
Unknwon
d5a3021a7d
Make markdown as an independent module
2016-02-20 17:10:05 -05:00
Josh Frye
0f1b26ed1e
Fix issue email formatting. Addresses #2331
2016-02-18 16:08:20 -05:00
Unknwon
2d3ecbe5b2
make mailer log more verbose
2015-12-19 02:44:34 -05:00
Unknwon
e538ff2770
fix #1829 and fix #890
2015-12-04 21:30:33 -05:00
Unknwon
932dbccb67
fix import path, fix #1782
2015-10-15 21:28:12 -04:00
Unknwon
21e13cb51e
#1525 Triggere mailer for admin created accounts
2015-09-25 19:45:44 -04:00
Unknwon
562e47f31c
finish all new template for current ones
2015-09-17 15:45:36 -04:00
Unknwon
9d36fc6986
finish new auth e-mails
2015-09-17 14:57:24 -04:00
Unknwon
373731f5e8
user gomail and new activate account email tpl
...
- #1496 : fallback plain text
- #1002 : add date header
- #913 : fix encoding of header
2015-09-17 01:54:12 -04:00
Unknwon
e75fd2f783
simplify names
2015-09-16 23:08:46 -04:00
Unknwon
b003b18788
#1649 Using commas to delineate emails
2015-09-16 15:04:54 -04:00
Hongcai Deng
fbb3486c95
fix syntax error
2015-09-07 18:28:56 +08:00
Hongcai Deng
7b92dc3d9d
implemented #1528
2015-09-07 18:25:15 +08:00
Louis Matthijssen
e6917b6be8
Fix missing space in issue emails subject
2015-08-24 21:05:20 +02:00
Unknwon
d7c3c79c00
minor fix on #1517
2015-08-20 19:12:55 +08:00
Yixin Hao
d720c92d99
Added supported of 'AUTH LOGIN'
...
i've been missing a 'r' in previous, lol~
2015-08-20 13:56:25 +08:00
Unknwon
dea3a8c6a4
WIP: create PR - choose branch
2015-08-08 22:43:14 +08:00
Unknwon
c47afdff58
add config options for HELO
2015-07-03 14:08:18 +08:00
Unknwon
466facc009
#1067 : Deleting users should remove them from collaborator lists
...
- fix delete user but repository watches are not decreased
2015-03-17 21:51:39 -04:00
无闻
3db80f2c55
Merge pull request #943 from diseaz/mailer-client-cert
...
Use client certificate for SMTP over TLS
2015-02-28 22:25:48 -05:00
Gogs
2f1369c614
add error for hello func
2015-02-20 10:12:27 +03:00
Gogs
5293ae1221
Fix: 504 5.5.2 <localhost>: Helo command rejected
2015-02-19 10:47:05 +03:00
Dmitry Azhichakov
3aaf292ba8
Fix "forcing" client certificate for SMTP
2015-02-13 10:33:55 +03:00
Dmitry Azhichakov
8a6c86644e
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.
2015-02-12 18:54:51 +03:00
Unknwon
bd555551ce
fix #801
2014-12-31 18:37:29 +08:00
无闻
030b3d751e
Merge pull request #766 from phsmit/correct_from
...
Correct usage of FROM in email creation
2014-12-21 01:55:28 -05:00
无闻
a18decf4cc
Merge pull request #755 from phsmit/multiple_emails
...
Multiple emails
2014-12-20 22:47:05 -05:00
Peter
c884ecfea1
Parse the from string to extract the email address
2014-12-19 23:06:03 +02:00
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
2014-12-19 22:48:21 +02:00
Peter
2321b4b272
Change from header in email, fixes #765
2014-12-19 22:33:17 +02:00
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.
2014-12-19 22:00:11 +02:00
Unknwon
b231b8c927
update locale and mirror code format
2014-12-19 00:24:17 -05:00