Commit Graph

33 Commits

Author SHA1 Message Date
Pavel Dohnal
9b9abf5cde Fix sending task reschedule
The query returned data from the sending queue table
So the next update updated the wrong row in the tasks table

[MAILPOET-1378]
2018-05-17 16:13:51 +01:00
stoletniy
734d1ded1f Check processed subscribers for old and new queues differently [MAILPOET-903] 2018-03-01 21:17:51 +03:00
stoletniy
03015c0bde Fix code review syntax remarks [MAILPOET-903] 2018-02-26 16:30:53 +03:00
stoletniy
be6647d763 Fix unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
stoletniy
c0c57f6b67 Sending queue refactoring WIP [MAILPOET-903] 2018-02-13 11:39:50 +03:00
Vlad
19c7efc9ef Pauses sending if processed subscribers list can't be updated 2018-01-09 12:25:04 +00:00
Vlad
a45a7a7616 Fixes newsletter body being incorrectly saved 2018-01-09 12:25:04 +00:00
Vlad
cb430673f8 Uses json_encode() instead of serialize() to save rendered newsletter
body
2017-12-20 22:13:00 -05:00
stoletniy
b9bdc86fd9 Add emoji support to newsletter body [MAILPOET-1009] 2017-08-28 19:07:17 +03:00
Tautvidas Sipavičius
90b93bd76e Merge pull request #1018 from mailpoet/prevent_sending_with_broken_newsletter_body
Prevents sending emails when rendered newsletter is broken [MAILPOET-1020]
2017-07-25 13:13:03 +03:00
Vlad
9dd326e7db Updates class to use newly added validate() method on the model
Validates existing queue's rendered newsletter body
Cleans code formatting
2017-07-24 12:49:39 -04:00
Vlad
4c898b76b2 Uses ValidModel to validate rendered newsletter body
Removes previous validation method
Does not serialize null values
2017-07-24 11:15:00 -04:00
Vlad
1a522794d6 Adds method to validate rendered newsletter body on sending queue
Prevents sending queue worker from sending when sending queue's rendered
newsletter body is invalid
2017-07-23 11:50:35 -04:00
stoletniy
b42d8e68d9 Rename removeSubscribers() method and encapsulate task completion logic [MAILPOET-987] 2017-07-20 11:22:47 +03:00
Vlad
709f45941a - Allows returning of text or html rendered body from the sending queue
model
2016-12-18 23:08:07 -05:00
Jonathan Labreuille
f77e24105d Merge pull request #709 from mailpoet/sending_restart
Sending retry/pause/restart [MAILPOET-653]
2016-11-29 13:51:53 +01:00
Vlad
c49d96d63a - Adds piority constants
- Sets medmium priority as default when none is specified
2016-11-28 12:03:09 -05:00
Vlad
72f696e834 - Removes unused logic to deal with "failed" subscribers
- Updates sending queue worker to handle new mailer response format
2016-11-28 09:50:32 -05:00
Vlad
2fa5e5ead2 - Moves logic of the Subscribers task to the Sending Queue model 2016-09-19 21:53:13 -04:00
Vlad
379dfb5f6e - Removes leftover private variable 2016-09-19 20:51:08 -04:00
Vlad
8360377992 - Replaces custom method to get newsletter with ORM's native one-to-one model
relationship
2016-09-19 20:47:49 -04:00
Vlad
0dfae97b32 - Updates model to serialize rendered newsletter body on save 2016-09-19 20:09:44 -04:00
Vlad
f88dabffe8 - Updates cron's sending queue worker to use model objects
- Adds new method to render newsletter to the newsletter model
- Adds new transient object to newsletter model that will hold temporary
  values (i.e., rendered body) when working with the model
2016-09-18 23:14:17 -04:00
Vlad
e48d55f0b1 - Adds new model methods 2016-08-22 09:26:25 -04:00
Tautvidas Sipavičius
67661e3aad Remove useless constructors 2016-06-30 18:50:48 +03:00
Vlad
46dda84012 - Moves queue subscriber handling logic to the queu model 2016-06-30 10:23:06 -04:00
Jonathan Labreuille
269ddae93a Refactored scheduling options for React (semi-converted to ES6 too)
- fixed issue with Pausing sending (missing self::)
2016-06-17 13:05:46 +02:00
Jonathan Labreuille
aa3a46b941 Status update of newsletters completed
- duplicate newsletter now includes options as well
- fixed NaN issue in statistics when newsletter is being sent
- use constant for scheduled (and put it as the sendingQueue Model level)
2016-06-16 20:01:53 +02:00
Jonathan Labreuille
ee6e261c42 Conditional display of statistics column (for standard)
- improved duplicate action (for standard)
- moved STATUS_COMPLETED constant from worker to SendingQueue model where it belongs
2016-06-15 16:26:42 +02:00
Jonathan Labreuille
409697ee64 Sending queue router update
- cleaned up useless code
- bugfixes
- improved code coverage
2016-02-11 11:30:01 -05:00
Vlad
f1bf2bb097 - Refactors Mailer class
- Refactors SendingQueue worker class
- Adds Maier router with a send() method + ability to specify sending method
- Updates tests
- Introduces 'stopping' and 'starting' cron states
- Improves cron control mechanism
Closes #276
2016-01-05 10:34:57 -05:00
Jonathan Labreuille
a413f666fe Sending Progress
- improved progress bar styles (with completed status)
- add pause/resume buttons
- fixed method case in settings.mta for MailPoet & SMTP Providers
- fixed parsley dependency
- added validation on from name & address on step 3
2015-12-03 18:26:36 +01:00
MrCasual
d2e5fb89c2 - Places supervisor/daemon/worker under the new Cron class
- Updates endpoints
- Integrates queue worker with MailPoet mailer
- Fixes script activation check logic
2015-12-02 22:48:15 -05:00