Commit Graph

74 Commits

Author SHA1 Message Date
Peter Jaszkowiak
ed9166b796 Refactor template compilation
Always use persona as a fallback for templates
2018-01-14 23:26:35 -07:00
Peter Jaszkowiak
4fcedc6f31 Enable imports in custom email templates (#6052)
* Enable imports in custom email templates

* Compile emails on config change

* Add error logging

* Add emailer tests

* Fix tests

* Only build when config changes
2017-11-21 10:51:20 -05:00
Dravere
8d5ef79e9c Smtp emailer change without restart (#5957)
* SMTP fallback transport setup during app startup and config update

* Verbose logging message to see when SMTP fallback transport is setup
2017-10-06 07:36:43 -04:00
Dravere
38900a9964 Smtp emailer issue 5951 (#5954)
* Fixed typo at emailer.js line 66 (serice -> service)

* When custom SMTP user and password is empty no authentication is attempted

* Added options to choose custom smtp connection security

* Made custom smtp connection security strings translatable

* Changed switch to if-else for custom smtp security option

* Fixed emailer.js lint errors

* Move custom setting to top of list
2017-10-04 18:26:44 -04:00
Peter Jaszkowiak
23e7222dfa Update Nodemailer to v4
also filter out .jst files from email template dropdowns
2017-08-30 14:26:41 -06:00
Peter Jaszkowiak
abffc29128 Use Benchpress (#5901)
* Use Benchpress

* Use Benchpress.compileParse

* Error for template load failure

* Use benchpressjs package

* Compile templates on demand

* Fix user settings page

* Fix admin search to exclude `.jst` files

* Fix 500-embed

So ajaxify can still show an error if the server goes down
2017-08-24 19:26:50 -04:00
Julian Lam
d68a3b6862 fixed emailer init if no logo saved 2017-07-28 16:43:32 -04:00
Julian Lam
0ff413e5f8 simplifying logic 2017-07-28 15:18:50 -04:00
Julian Lam
f77f17dc20 just use emailLogo instead of doing logo with x50.png suffix 2017-07-28 15:07:44 -04:00
Julian Lam
36e02780fe updates to email logo usage 2017-07-25 09:45:49 -04:00
Julian Lam
44851f97ac added logic for hiding logo if none is set, preventing crash on startup if no logo is set 2017-07-17 14:51:12 -04:00
Julian Lam
c40b11aa6e updated site upload logic so that site logo is resized for email header, implemented site logo in email header 2017-07-17 10:47:56 -04:00
Julian Lam
a2627d2066 added default payload to emails, and adding nodebb logo for email header 2017-07-13 11:30:44 -04:00
Barış Soner Uşaklı
6a742ead38 style 2017-05-26 23:55:20 -04:00
Peter Jaszkowiak
1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
Peter Jaszkowiak
93f38d4f30 ESlint no-multi-assign
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
2017-02-18 18:06:28 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Julian Lam
06a77143bd additional logging and removing interstitial session data if plugins don't return interstitials 2017-01-17 10:46:04 -05:00
barisusakli
4b6e4f085d more tests
group cover upload tests
registration approval queue tests
2016-12-02 14:05:59 +03:00
Peter Jaszkowiak
c5237443cd Standard language codes (#5218)
* Use standard language codes. Fallback for plugins.

* Fix transifex config

* Tab vs space here for some reason

* Remove redundancies

* config.relative_path instead of allcaps

* added upgrade script for existing users' accounts
2016-11-23 11:50:49 -05:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
Julian Lam
c8e64ae93b updating profile fields to allow plugins (e.g. the write-api) to change a user's profile picture
@barisusakli please let me know if this is not ok.
2016-07-11 18:26:23 -04:00
Julian Lam
33255d73dd fix #4546 2016-04-20 10:53:47 -04:00
psychobunny
75917e25b3 closes #4026 2016-02-23 13:33:46 -05:00
Terry Tate
3e75c6f6a3 Update to nodemailer 2.0 syntax for smtpTransport
Fixes #4193
2016-02-21 17:13:44 +00:00
barisusakli
e306194065 style 2016-02-17 20:22:00 +02:00
Julian Lam
1c2518fe22 Using sendmail instead of direct transport
Squashed commit of the following:

commit 9d4937fff6f6a1b4327fed0ada32153bd7e07efd
Author: Julian Lam <julian@designcreateplay.com>
Date:   Mon Jan 18 13:21:52 2016 -0500

    Revert "added some debug code"

    This reverts commit 2dd8535c7bd8f59b8ed59c8b98b5484a79fa0500.

commit 2dd8535c7bd8f59b8ed59c8b98b5484a79fa0500
Author: Julian Lam <julian@designcreateplay.com>
Date:   Mon Jan 18 12:04:02 2016 -0500

    added some debug code

commit af8ca8241e66fd538089517e7722c644668667f2
Author: Julian Lam <julian@designcreateplay.com>
Date:   Mon Jan 18 11:50:41 2016 -0500

    using sendmail instead of direct transport
2016-01-18 13:22:31 -05:00
Julian Lam
57918332e9 fixed issue with no 'from' name when using NodeMailer 2016-01-06 15:58:25 -05:00
Julian Lam
d1fb09caec apparently I *did* need html-to-text. 2015-12-07 16:41:21 -05:00
Julian Lam
963d9b22b3 Removing and updating dependencies to satisfy david-dm.org 2015-12-07 16:06:42 -05:00
Julian Lam
5adb8da427 enabled Gmail routing for email fallback 2015-12-07 15:27:04 -05:00
Julian Lam
e37709ad8b something.. 2015-11-08 12:28:48 -05:00
Julian Lam
948c98b668 adding plaintext email via html-to-text module 2015-11-08 11:57:04 -05:00
Julian Lam
48b5bab849 closes #3756 2015-11-06 14:02:25 -05:00
Julian Lam
04db07ed33 seems legit, tjs not even used in this file 2015-09-25 14:33:57 -04:00
barisusakli
3d73fbf74a only pass pack err 2015-09-24 11:38:35 -04:00
barisusakli
dbf0f279a2 closes #3644 2015-09-22 17:22:49 -04:00
psychobunny
47fb8e8125 closes #2183 2015-09-21 17:57:05 -04:00
psychobunny
fa8a2c5c1b render email footer partial 2015-09-21 16:49:59 -04:00
Barış Soner Uşaklı
e9692a3e1f fix emailer 2015-09-15 12:14:01 -04:00
barisusakli
b099aaf61f fix typo in emailer 2015-09-14 21:01:13 -04:00
barisusakli
45c446dac0 new hook filter:email.send 2015-09-14 16:22:44 -04:00
barisusakli
7bd98a2516 closes #3427 2015-08-18 15:01:36 -04:00
barisusakli
5ee1951245 closes #3271 2015-06-28 21:54:21 -04:00
Julian Lam
47a7ab15be refactored translator system to be a require.js module, and not a global 2015-03-31 15:11:59 -04:00
Julian Lam
521c454dde updated emailer to pass through "fromUid" if available 2015-03-17 11:29:19 -04:00
Barış Soner Uşaklı
8b21f1c8ab dont reload settings page on every save
only show an alert if reload is required
renamed settings.language to settings.userLang to match the config
2015-02-27 13:24:53 -05:00
Barış Soner Uşaklı
3293436867 closes #2640 2015-02-11 14:44:56 -05:00