aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Mail/Mailer.php
Commit message (Collapse)AuthorAgeFilesLines
* 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-311-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Added Hook before Message is sendArne Hamann2020-03-241-1/+13
| | | | 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-051-1/+6
| | | | 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>
* 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>
* 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-161-1/+2
| | | | 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-051-1/+1
| | | | | | | | is undefined. Fixes https://github.com/nextcloud/server/issues/8387. Signed-off-by: Jared Boone <jared.boone@gmail.com>
* Make \OCP\Mail strictRoeland Jago Douma2018-03-051-10/+11
| | | | | | | * Fix typehints * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move attachment creators to mailer classJoas Schilling2017-10-251-0/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Introduce a public interface for MessageJoas Schilling2017-10-181-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge setMetaData into constructorJoas Schilling2017-09-041-3/+16
| | | | | | This ensures that the meta data is set in the beginning Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use non-deprecated INTL_IDNA_VARIANT_UTS46Lukas Reschke2017-08-091-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-241-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to overwrite the email template againJoas Schilling2017-06-061-0/+10
| | | | 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>
* Add IEMailTemplate to public OCP APILukas Reschke2017-04-111-2/+22
| | | | | | 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>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-3/+4
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix default of mail_smtpmode - fixes #3102Morris Jobke2017-01-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix othersJoas Schilling2016-07-211-1/+2
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move \OC\Mail to PSR-4Roeland Jago Douma2016-04-201-0/+223