Rish
b7df5c360d
Updated send test email to use common email data
2019-11-13 22:53:33 +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
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
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
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
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
898c354644
Added [Test] for preview email subject
2019-11-06 19:20:12 +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
00db1d385c
Added createUnsubscribeUrl fn to mega
...
no-issue
2019-11-06 18:08:11 +07:00
Nazar Gargol
055fc6b09a
Added email record after mage service sends an email
2019-11-06 15:56:56 +07:00
Fabien O'Carroll
73b00e77c2
Added unsubscribe handler to mega service
...
no-issue
2019-11-06 15:30:37 +07:00
Nazar Gargol
d0bf6e8579
Filtered out members which are unsubscribed in mailing service
2019-11-05 17:00:21 +07:00
Rish
4a53184d7f
Added send preview email API
...
no issue
2019-11-05 16:09:18 +07:00
Fabien O'Carroll
d1812281f7
Updated serialisation to use current attributes
...
no-issue
We were getting some funny behaviour before this because some previous
attributes were just the defaults, when a post was new
2019-11-05 12:53:14 +07:00
Fabien O'Carroll
84300747a9
Added content gating to the mega service
...
no-issue
2019-11-05 12:53:14 +07:00
Nazar Gargol
a527a08cb0
Fixed linter error
2019-11-05 12:24:28 +07:00
Nazar Gargol
c913b0cbbf
Extracted post email serializer from mega service
2019-11-05 12:15:50 +07:00
Fabien O'Carroll
3b11d25170
Fixed check for send_email_when_published
...
no-issue
2019-11-05 11:28:16 +07:00
Peter Zimon
5aaee4e8b2
Fixed post serialisation
2019-11-05 11:20:03 +07:00
Naz Gargol
977298b6e1
Added basic HTML template support to MEGA ( #11336 )
...
no issue
- Sends formatted email to members
- Added css inlining support for MEGA template
- Migrated MEGA service to use API serializers
- Service needs to be compliant with the API to be able to serve absolute URLs for resources like images
- Fixed send email check for previously sent mails
2019-11-04 17:53:42 +07:00