summaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Do not use the instance name as user part of from mail addressesJulius Härtl2020-03-121-1/+1
| | | | | | | This will cause issues since the theming name can contain characters that are not allowed in the local part of the mail address (like spaces) Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>