aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
Commit message (Collapse)AuthorAgeFilesLines
* use getsystemvalue-functions in Mailer.phpSimon L2023-06-261-6/+6
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Migrate to Symfony MailerCôme Chilliet2023-02-023-172/+224
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use the default primary color instead of "randomly" the color of the user ↵Joas Schilling2023-01-301-3/+3
| | | | | | triggering the email Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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>
* use constant as default value in value getterBennet Becker2022-12-261-1/+1
| | | | Signed-off-by: Bennet Becker <dev@bennet.cc>
* fix static-analysis error and formatting codeBennet Becker2022-12-231-6/+11
| | | | Signed-off-by: Bennet Becker <dev@bennet.cc>
* fix getAutoSubmitted return type and adding unit testsBennet Becker2022-12-231-1/+1
| | | | Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
* Adding API method to set the Auto-Submitted header to OCP\Mail\IMessageBennet Becker2022-12-231-0/+33
| | | | | | and implementation in OC\Mail\Message Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
* Do not throw errors when invalid setTo email is providedJulius Härtl2022-11-031-7/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move findBinaryFinder and isFunctionEnabled away from OC_HelperCarl Schwan2022-08-231-11/+7
| | | | | | | | | | | | 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>
* Extend email loggingJoas Schilling2022-06-281-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use {$var} instead of ${var} for PHP 8.2 compatibilityCôme Chilliet2022-06-141-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-12/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Increase email main buttons width for non-english languagesacsfer2022-01-131-2/+2
| | | Like "Set your password" (en) vs "Créer votre mot de passe" (fr)
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix parameter type hint in phpdocArthur Schiwon2021-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* mail-template - don't show hyphen if slogan is emptyszaimen2021-06-221-1/+5
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #27306 from ↵Christoph Wurst2021-06-081-1/+10
|\ | | | | | | | | nextcloud/enh/noid/set-local-domain-for-swiftmailer Set local domain for swiftmailer
| * Set local domain for swiftmailer transportDaniel Kesselberg2021-05-311-1/+10
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-6/+2
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-3/+3
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Micro-optimize validation of empty email addressesChristoph Wurst2021-02-111-0/+4
| | | | | | Then we don't have to construct any validators. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix vsprint parameterRoeland Jago Douma2020-12-031-1/+1
| | | | | | | %2\$; is not valid. On php7 this is just ignored but on php8 it gives an error. %2\$s; works. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix #23357medcloud2020-11-181-2/+2
| | | | Signed-off-by: medcloud <42641918+medcloud@users.noreply.github.com>
* Merge pull request #22373 from nextcloud/fix-example-usage-for-mailerJohn Molakvoæ2020-10-311-3/+3
|\ | | | | Fix example usage
| * Fix example usagekevin1471472020-08-231-3/+3
| |
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | 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-10/+30
|\ \ | | | | | | | | | brad2014/feature/brad2014/12391-improve-imip-mail-message-take-2
| * | Minor cleanup: php-cs-fixer, tests, interface consistencyBrad Rubenstein2020-09-021-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | iMIP email improvements (take 2)brad20142020-08-201-6/+24
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR is a replacement for PR #17195. It is intended to be simpler to review and approve, with fewer changes, some disabled by default. It addresses issues #12391 and #13555, with the following changes: - The plainText of iMIP emails has been upgraded as described in issue #12391. The HTML design style has not been changed. - Some of the HTML and plainText content has been rearranged (simplified header language, moving the event title to from text body to the first item in the bullet list, spelling corrections, moving the description to the end of the list), per issue #12391. - The interface for EMailTemplate has been extended: addBodyListItem now takes an optional `plainIndent` parameter. Existing callers see no change. Where new calls set the new parameter >0, the list item label (metaInfo) is put in column 1, and the value is indented into column 2 (properly accounting for multiple lines, if any). - An optional dav config setting has been added, `invitation_list_attendees`. It defaults to 'no', leaving emails unchanged. If set by the site admin to 'yes', then iMIP emails include, for the organizer and each attendee, their name, email, and a ✔︎ if they have accepted the invitation. - Minor refactoring. Notes: - The labels for organizers and attendees list items are new, and require translation/localization. - Dav config settings are documented in the code, but not in the Administrator's Guide. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
* / Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix header logo size in notification mailsSimon Spannagel2020-07-231-2/+3
| | | | Signed-off-by: Simon Spannagel <simonspa@kth.se>
* Fix notification mail testsJan-Christoph Borchardt2020-05-011-1/+2
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Notification mails: Fix some alignment details and remove shadowJan-Christoph Borchardt2020-04-301-4/+4
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Notification mails: Change font to native font stackJan-Christoph Borchardt2020-04-301-42/+42
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Notification mails: Logo bar/box to circle so it stands nicely on its ownJan-Christoph Borchardt2020-04-301-6/+6
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Notification mails: Adjust vertical spacingJan-Christoph Borchardt2020-04-301-8/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix notification mails height issue in Nextcloud MailJan-Christoph Borchardt2020-04-301-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Update license headers for 19Christoph Wurst2020-04-293-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Adhere to EMailTemplate interface in constructor call.Tekhnee2020-04-251-1/+1
| | | | | Email creation appears to have been refactored lately but it looks like custom template-based emails were left out. Signed-off-by: Tekhnee <info@tekhnee.org>
* Merge pull request #20447 from liamjack/fix/13287/welcome_emailJohn Molakvoæ2020-04-171-2/+2
|\ | | | | Increase max-height on button in welcome email template
| * Fix #13287 - Increase max-height on button in welcome email templateLiam JACK2020-04-121-2/+2
| | | | | | | | Signed-off-by: Liam JACK <liamjack@users.noreply.github.com>
* | Provide the proper language to the mailerRoeland Jago Douma2020-04-162-16/+15
|/ | | | | | | 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-104-9/+6
| | | | | | | | | | | | | | | 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>
* Make sure there is exactly one newline after importsChristoph Wurst2020-04-091-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Added Hook before Message is sendArne Hamann2020-03-242-5/+26
| | | | Signed-off-by: Arne Hamann <kontakt+github@arne.email>