summaryrefslogtreecommitdiffstats
path: root/lib/public/Mail
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17456 from ↵John Molakvoæ2020-09-041-1/+2
|\ | | | | | | brad2014/feature/brad2014/12391-improve-imip-mail-message-take-2
| * Minor cleanup: php-cs-fixer, tests, interface consistencyBrad Rubenstein2020-09-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | IMipPlugin.php Removed blank lines to make php-cs-fixer happy. Minor cleanup: bugs found by Psalm static checker IEMailTemplate: The public interface to addBodyListItem also needs to include the new plainIndent parameter. IMipPlugin: Fixes an undefined variable for events that do not have DTEND. Also use explicit string conversion for parameters and properties in several places. The new email template adds an additional blank line before "button" links in plain text, so the tests were fixed to include that additional blank line. Signed-off-by: Brad Rubenstein <brad@wbr.tech>
* | Merge pull request #22432 from nextcloud/enh/phpdocRoeland Jago Douma2020-08-263-3/+0
|\ \ | | | | | | Add php docs build script
| * | Remove @package annotations from public namespaceJulius Härtl2020-08-263-3/+0
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add PHP doc for eventsMorris Jobke2020-08-101-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-161-1/+2
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Added Hook before Message is sendArne Hamann2020-03-241-0/+57
| | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* Update license headersChristoph Wurst2019-12-054-5/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix commentsRoeland Jago Douma2018-03-051-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-03-051-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make \OCP\Mail strictRoeland Jago Douma2018-03-054-36/+40
| | | | | | | * Fix typehints * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add info also to public interfaceJoas Schilling2018-02-161-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix welcome text for better grammar in themed instancesMorris Jobke2017-11-091-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-063-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move attachment creators to mailer classJoas Schilling2017-10-252-17/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix docsJoas Schilling2017-10-191-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Extend the API with teh parameters from SwiftJoas Schilling2017-10-191-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add attachment support to emailsJoas Schilling2017-10-182-1/+68
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Introduce a public interface for MessageJoas Schilling2017-10-182-5/+88
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow templating of email subjectsJoas Schilling2017-10-181-0/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve text: 'you have now' -> 'you now have'Leon Klingele2017-09-081-1/+1
| | | | Signed-off-by: Leon Klingele <leon@struktur.de>
* Merge setMetaData into constructorJoas Schilling2017-09-042-8/+4
| | | | | | This ensures that the meta data is set in the beginning Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add meta information to emails for better customisationJoas Schilling2017-08-241-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Stricter phan config fixesLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Allow meta info and iconsJoas Schilling2017-04-251-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add lists to HTML emailsJoas Schilling2017-04-241-0/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename renderHTML to renderHtmlMorris Jobke2017-04-191-2/+2
| | | | | | | * fixes #4383 * improves consistency Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix translationsJoas Schilling2017-04-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update email template for lost password emailMorris Jobke2017-04-121-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* No newlines when heading is emptyJoas Schilling2017-04-121-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't duplicate the sentence with the headerJoas Schilling2017-04-121-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly escape heading, body and button textMorris Jobke2017-04-121-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add addBodyButton to add a single button to email templatesMorris Jobke2017-04-121-0/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to set text versions for the plain text emailMorris Jobke2017-04-111-3/+7
| | | | | | * allows different texts for HTML and text version of the email Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove constructor from interfaceLukas Reschke2017-04-111-11/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add IEMailTemplate to public OCP APILukas Reschke2017-04-112-0/+136
| | | | | | Also adds `\OCP\Mail\IMailer::createEMailTemplate` as helper so the functionality can easily be used within apps. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+2
|
* Move \OCP\Mail to PSR-4Roeland Jago Douma2016-05-181-0/+76