summaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersChristoph Wurst2019-12-054-4/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* changed order of methodsTomasz Paluszkiewicz2019-02-261-1/+1
| | | | Signed-off-by: Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com>
* fix(EMailTemplate): malformed HTML in some casesTomasz Paluszkiewicz2019-02-241-0/+1
| | | | | | when an addBodyListItem() is not directly followed by addBodyButton(), resulting HTML is broken Signed-off-by: Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com>
* Addressing comments, array() to []Branko Kokanovic2018-12-171-1/+1
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Addressing comments, count to emptyBranko Kokanovic2018-12-171-1/+1
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Expose Swift Mailer streaming options in config, fixes #12702Branko Kokanovic2018-11-301-0/+4
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Apply patch from @cwiedmann but drop -oi option for pipeCarsten Wiedmann2018-11-291-1/+10
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fallback to default path is sendmail can't be foundRoeland Jago Douma2018-11-021-1/+5
| | | | | | | | | | | If the sendmail binary can't be found at all we fallback to the default path. It most likely is not there but then at least a proper error message pops up. Updated the tests to also properly pass. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mailer: discover sendmail path instead of hardcoding it to /usr/sbin/sendmailFlorian Klink2018-11-021-1/+1
| | | | | | | | | | | | | `sendmail` can very well be in a path different from `/usr/sbin/sendmail`. We already search `$PATH` at `lib/private/Settings/Admin/Mail.php` to detect whether we want to offer sendmail as a mail transfer method, so let's be consistent and actually initialize `\Swift_SendmailTransport` with this path to sendmail, instead of just hardcoding `/usr/sbin/sendmail`. Signed-off-by: Florian Klink <flokli@flokli.de>
* Fix bug #12151: fix list formatting by correcting malformed htmlbrad20142018-10-301-2/+3
| | | | Signed-off-by: Brad Rubenstein <brad@wbr.tech>
* Use index for format string parametersJulius Härtl2018-07-191-9/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* EMailTemplate: Move background color of buttons to the table to fix ↵Julius Härtl2018-07-191-6/+6
| | | | | | rendering in lotus notes Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Swift to \Swift_Mailer as abstractionRoeland Jago Douma2018-07-041-12/+9
| | | | | | | * \Swift_Mailer handles starting the transport etc properly * Fixed tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make swift 6 compatibleRoeland Jago Douma2018-07-041-26/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Provide an option to disable HTML emailsMorris Jobke2018-04-162-8/+15
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not convert email addresses with idn_to_ascii if INTL_IDNA_VARIANT_UTS46 ↵Jared Boone2018-04-052-2/+2
| | | | | | | | is undefined. Fixes https://github.com/nextcloud/server/issues/8387. Signed-off-by: Jared Boone <jared.boone@gmail.com>
* Fix commentsRoeland Jago Douma2018-03-052-6/+6
| | | | 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-49/+53
| | | | | | | * Fix typehints * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow custom HTML in HTML EmailsJoas Schilling2018-02-151-11/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix email buttons for white themeMorris Jobke2017-12-111-4/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-064-1/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move attachment creators to mailer classJoas Schilling2017-10-252-21/+22
| | | | 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-2/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add attachment support to emailsJoas Schilling2017-10-182-0/+98
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Introduce a public interface for MessageJoas Schilling2017-10-182-4/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow templating of email subjectsJoas Schilling2017-10-181-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge setMetaData into constructorJoas Schilling2017-09-042-14/+21
| | | | | | 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/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use non-deprecated INTL_IDNA_VARIANT_UTS46Lukas Reschke2017-08-092-3/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Stricter phan config fixesLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #5844 from nextcloud/phpstorm_inspect2Morris Jobke2017-07-242-3/+3
|\ | | | | More phpstorm inspection fixes
| * More phpstorm inspection fixesRoeland Jago Douma2017-07-242-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove unneeded stylesMorris Jobke2017-07-241-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Adjust to height=120Lukas Reschke2017-07-241-1/+1
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Revert "Set max-width of image to 100px in Outlook as well"Lukas Reschke2017-07-241-3/+0
|/
* Set max-width of image to 100px in Outlook as wellMorris Jobke2017-07-231-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to overwrite the email template againJoas Schilling2017-06-061-0/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add function to request SVG or regular fallback imageLukas Reschke2017-05-081-1/+1
| | | | | | Fixes https://github.com/nextcloud/server/issues/4647 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Allow meta info and iconsJoas Schilling2017-04-251-6/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add lists to HTML emailsJoas Schilling2017-04-241-22/+104
| | | | 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>
* Merge pull request #4369 from nextcloud/fix-translationsMorris Jobke2017-04-181-2/+2
|\ | | | | Fix translations
| * Fix translationsJoas Schilling2017-04-181-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add instance name to default senderLukas Reschke2017-04-181-1/+1
|/ | | | | | Otherwise your mail program shows "foo@mail.com" instead of "Nextcloud" or whatever your instance name is. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Update email template for lost password emailMorris Jobke2017-04-121-2/+13
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* No newlines when heading is emptyJoas Schilling2017-04-121-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* make the plain text footer standard compliant and add a space after '--'. It ↵Bjoern Schiessle2017-04-121-1/+1
| | | | | | also adds a line break in front so that there is some spacing between the mail body and the footer Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>