Kevin Ansfield
ee47dd4dae
Added /unsubscribe/ route to the front-end ( #11394 )
...
no issue
- adds new router to the frontend for handling unsubscribe
- default template lives in `core/server/frontend/views/unsubscribe.hbs`
- `{{error}}` is present and contains the error message when unsubscribe fails
- `{{member}}` is present and contains the member email
- updated unsubscribe url to match the new format
2019-11-15 09:36:49 +00:00
Rish
52eb3ca9da
Converted all link tags in preview to open in new tab
...
no issue
2019-11-15 11:26:43 +05:30
Kevin Ansfield
90f61d1f04
Added 'bulk-email' tag to bulk messages sent with mailgun
...
no issue
- helps distinguish bulk vs transactional email when both are using the same mailgun account
2019-11-15 00:06:23 +00:00
Rish
dbae6ccb58
Added site title as sender name for bulk email
...
no issue
2019-11-14 20:39:51 +05:30
Nazar Gargol
98364e4d66
Removed unused method from bulk-mailer
...
- This was a leftover from rebase
- The method is not meant to be used anywhere
2019-11-14 12:35:26 +07:00
Rish
22b48cbef3
Fixed mailgun instance not updated on settings change
...
no issue
2019-11-14 10:45:26 +05:30
Rish
6d1de1b912
Fixed post not showing authors in email
...
no issue
2019-11-14 10:45:05 +05:30
Rish
b7df5c360d
Updated send test email to use common email data
2019-11-13 22:53:33 +05:30
Rish
d3229b6ade
Wired mailgun provider API keys via config or settings
...
no issue
2019-11-13 22:29:31 +05:30
Peter Zimon
06afa4c042
Refined mail design
2019-11-13 14:11:54 +01:00
Rish
af43c0872c
Fixed mailgun not sending test emails due to empty recipient variables
...
no issue
Mailgun expects `recipient-variables` to be a json object and fails to attempt sending the message in case its undefined, which is the case for test emails as they don't have member `uuid` or `unsubscribe` url. This sets a default empty object for `recipent-variables` in case of no data.
2019-11-13 17:02:56 +05:30
Naz Gargol
f5479e1473
Added batching support for bulk email service ( #11388 )
...
no issue
- The limitation on Mailgun side of API seems to be 1000 emails per message.
- The only place where I could find a hard limit of 1000 emails per
batch was this PHP SDK issue: https://github.com/mailgun/mailgun-php/issues/469
- To store ids of sent messages introduce a mega column on the emails table. They can be synced with stats or other metrics during even pooling in the future
- Removed redundant `join(',')` statement.The SDK accepts an array of emails as well. Less code - better code :)
2019-11-13 17:52:23 +07:00
Naz Gargol
208b710677
Added tagging support to bul email service ( #11390 )
...
no issue
- Tagging needs to be added to be able to group/filter sent messages for various reasons. An example use case is when multiple Ghost instances use the same mailgun account
- Tag value can be provided as a part of config.json file under
`bulkEmail.mailgun.tag` key
2019-11-13 17:36:19 +07:00
Fabien O'Carroll
0a47adac88
Updated name of bulk email service config
...
no-issue
2019-11-08 17:26:05 +07:00
Fabien O'Carroll
11d0eff863
Converted bulk email service to use mailgun
...
no-issue
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
00da426a02
Added unique_id to the recipient data
...
no-issue
This will be required by mailgun
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
2b285c5fd3
Set from adress in the mega service
...
no-issue
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
cc39786958
Updated members service to use config module
...
no-issue
2019-11-08 17:21:20 +07:00
Fabien O'Carroll
90d582c5f6
Added config module to members service
...
no-issue
This is for a central place to retrive member related settings from
2019-11-08 17:21:20 +07:00
Peter Zimon
ed2f9e499c
Fixed gallery image height
2019-11-07 17:17:34 +07:00
Nazar Gargol
3ca25886eb
Removed redundant context passing
...
- Context object is not needed when model is used directly
2019-11-07 17:09:30 +07:00
Nazar Gargol
cc581c66ce
Inlined context use so it matches convention used in most of the codebase
2019-11-07 16:45:53 +07:00
Peter Zimon
47bc7c400c
Fixed pre style for email template
2019-11-07 16:31:48 +07:00
Nazar Gargol
fdba1cb95b
Updated status handling
...
- We need to distinguish 2 stages before and after attempted sending of the email
2019-11-07 16:26:34 +07:00
Nazar Gargol
b364fc5e35
Not creating email record when there is nobody to send it to
2019-11-07 16:00:18 +07:00
Nazar Gargol
640f7155fc
Fixed linter
2019-11-07 11:47:15 +07:00
Nazar Gargol
f34f4a7b8d
Added comment to addEmail method
2019-11-07 11:47:15 +07:00
Nazar Gargol
eca129c18d
Hooked mega service to listen to email.added event
...
- This was needed because we switched to synchronous request handling (to allow including email data with post.publish event)
2019-11-07 11:47:15 +07:00
Rish
86d6fc8578
Serialized post html for email
...
no issue
2019-11-07 11:15:16 +07:00
Rish
898c354644
Added [Test] for preview email subject
2019-11-06 19:20:12 +07:00
Rish
7b89cd445a
Fixed unsubscribe url for preview email
2019-11-06 18:36:27 +07:00
Peter Zimon
4b24780ebd
Refined figcaption size in emails
2019-11-06 18:35:03 +07:00
Rish
6357d0c79b
Fixed custom subject in email preview
2019-11-06 18:32:11 +07:00
Fabien O'Carroll
81b9018526
Passed unsubscribeUrl template variable to bulk email
...
no-issue
2019-11-06 18:08:11 +07:00
Fabien O'Carroll
509682cd6a
Supported unsubscribe_url template variable for bulk email
...
no-issue
2019-11-06 18:08:11 +07:00
Fabien O'Carroll
00db1d385c
Added createUnsubscribeUrl fn to mega
...
no-issue
2019-11-06 18:08:11 +07:00
Rish
4db260f17e
Added authors to email preview template
2019-11-06 18:03:46 +07:00
Peter Zimon
4bd5b1c435
Added unsubscribe URL
2019-11-06 16:19:21 +07:00
Peter Zimon
36f7a88b84
Added current year in email footer
2019-11-06 16:17:03 +07:00
Nazar Gargol
055fc6b09a
Added email record after mage service sends an email
2019-11-06 15:56:56 +07:00
Peter Zimon
2c55b82be1
Refined email template
2019-11-06 15:47:20 +07:00
Peter Zimon
d6e8db28ab
Refined email template
2019-11-06 15:39:27 +07:00
Fabien O'Carroll
030819dc9e
Added eslint ignore comments for template
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
73b00e77c2
Added unsubscribe handler to mega service
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
23964750a9
Allowed getting member by uuid
...
no-issue
2019-11-06 15:30:37 +07:00
Hannah Wolfe
ca61e245e8
Updated syntax in labs service
...
- use consistent, simpler syntax
2019-11-06 14:53:53 +07:00
Peter Zimon
c2633b09ea
Refined post email template
2019-11-06 14:53:40 +07:00
Hannah Wolfe
7a36200e24
🐛 Ensure deprecated labs flags are unset
...
fixes #11343
- solves the case where themes depends on old labs flags that are now always false, but the DB still has the feature set to true
- add concept of deprecated labs flags to the labs service
- make sure that the labs service gets used in our theme middleware
- added tests and other small fixes
2019-11-06 14:42:39 +07:00
Rish
3e331fcf86
Fixed lint
2019-11-06 12:15:03 +07:00
Rish
686e0143c7
Added date formatting for email post data
...
no issue
2019-11-06 12:06:24 +07:00