aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Mail
Commit message (Collapse)AuthorAgeFilesLines
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-37/+37
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: mail provider backendSebastianKrupinski2024-07-234-0/+469
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* fix(mail): Fix big logos in mail templates for OutlookJoas Schilling2024-07-172-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(Mailer): Allow to enforce strict email formatFerdinand Thiessen2024-05-311-9/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-133-30/+8
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Add "-i" to MailTest's pipe FedericoHeichou2024-01-191-1/+1
| | | Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-5/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* try to fix testsSimon L2023-06-231-18/+25
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Adapt tests to config value typingCôme Chilliet2023-04-051-14/+24
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate to Symfony MailerCôme Chilliet2023-02-022-258/+236
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Fix method name in unit testsJoas Schilling2023-01-301-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor AutoSubmittedValue to Headers\AutoSubmitted and addingBennet Becker2023-01-031-7/+7
| | | | | | header name to constants Signed-off-by: Bennet Becker <dev@bennet.cc>
* fix static-analysis error and formatting codeBennet Becker2022-12-231-39/+4
| | | | Signed-off-by: Bennet Becker <dev@bennet.cc>
* fix getAutoSubmitted return type and adding unit testsBennet Becker2022-12-231-0/+142
| | | | Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
* Do not throw errors when invalid setTo email is providedJulius Härtl2022-11-031-3/+14
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove deprecated at matcher from tests/libCôme Chilliet2022-08-291-1/+1
| | | | | | Only 15 warnings left in there Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move findBinaryFinder and isFunctionEnabled away from OC_HelperCarl Schwan2022-08-231-1/+1
| | | | | | | | | | | | findBinaryFinder is now a service that is still private but with some minor optimization (remove the hasKey check). isFunctionEnabled is now in OCP\Util Both function are still keep but all internal usage in nextcloud/server were migrated to the new usage, so that we can remove it in 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-3/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Set local domain for swiftmailer transportDaniel Kesselberg2021-05-311-1/+39
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Micro-optimize validation of empty email addressesChristoph Wurst2021-02-111-0/+1
| | | | | | Then we don't have to construct any validators. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-12/+12
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-162-4/+11
| | | | | | | 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-103-4/+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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-19/+19
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20172 from nextcloud/techdebt/phpunit-short-returnChristoph Wurst2020-03-262-18/+18
|\ \ | | | | | | Use the shorter phpunit syntax for mocked return values
| * | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-18/+18
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Added Hook before Message is sendArne Hamann2020-03-242-14/+69
| | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Addressing comments, array() to []Branko Kokanovic2018-12-171-2/+2
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Expose Swift Mailer streaming options in config, fixes #12702Branko Kokanovic2018-11-301-0/+22
| | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* Add testcases for pipe modeDaniel Kesselberg2018-11-291-12/+38
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fallback to default path is sendmail can't be foundRoeland Jago Douma2018-11-021-1/+7
| | | | | | | | | | | 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>
* Swift to \Swift_Mailer as abstractionRoeland Jago Douma2018-07-041-21/+12
| | | | | | | * \Swift_Mailer handles starting the transport etc properly * Fixed tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Provide an option to disable HTML emailsMorris Jobke2018-04-162-1/+53
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2018-03-052-3/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix email buttons for white themeMorris Jobke2017-12-111-0/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix welcome text for better grammar in themed instancesMorris Jobke2017-11-091-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve text: 'you have now' -> 'you now have'Leon Klingele2017-09-081-4/+4
| | | | Signed-off-by: Leon Klingele <leon@struktur.de>
* Fix testsMorris Jobke2017-09-051-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix unit testsJoas Schilling2017-09-041-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename renderHTML to renderHtmlMorris Jobke2017-04-191-4/+4
| | | | | | | * 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/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use instance name as alt-textJoas Schilling2017-04-121-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>