]> git.mxchange.org Git - friendica.git/commit
Extract System emails from enotify
authornupplaPhil <admin+github@philipp.info>
Sat, 1 Feb 2020 19:08:54 +0000 (20:08 +0100)
committernupplaPhil <admin+github@philipp.info>
Sun, 2 Feb 2020 21:43:35 +0000 (22:43 +0100)
commit3291728059f2016dc57b6b4b2fa6305e93de601c
tree6f474e942a7d54038bcdc269a4b2d48b162f64ca
parent74490d65944098c564331a10b7e863d5430bce68
Extract System emails from enotify
- Removed every SYSTEM_EMAIL occurrence in enotify
- Introduced a "SystemMailBuilder" for build system emails
- Replaced every SYSTEM_EMAIL usage in the classes with calling this builder
- Added tests for this new Builder
- Split the email templates between "base" template for email and concrete usages for different use cases
20 files changed:
boot.php
include/enotify.php
mod/lostpass.php
mod/removeme.php
src/Core/Update.php
src/Model/User.php
src/Module/Admin/Users.php
src/Object/EMail/IEmail.php
src/Util/EMailer/MailBuilder.php [new file with mode: 0644]
src/Util/EMailer/SystemMailBuilder.php [new file with mode: 0644]
src/Util/Emailer.php
tests/Util/SampleMailBuilder.php [new file with mode: 0644]
tests/src/Util/Emailer/MailBuilderTest.php [new file with mode: 0644]
view/templates/email/html.tpl [new file with mode: 0644]
view/templates/email/notify/notify_html.tpl [new file with mode: 0644]
view/templates/email/notify/notify_text.tpl [new file with mode: 0644]
view/templates/email/notify_html.tpl [deleted file]
view/templates/email/notify_text.tpl [deleted file]
view/templates/email/system/html.tpl [new file with mode: 0644]
view/templates/email/system/text.tpl [new file with mode: 0644]