Add a method for sending newsletters via new Mailer class

This commit is contained in:
Tautvidas Sipavičius
2016-01-13 13:04:21 +02:00
parent 1b2cf7bd16
commit 2cb32e7a78
4 changed files with 54 additions and 18 deletions

View File

@ -73,7 +73,7 @@ define([
Module.previewNewsletter = function(options) {
return MailPoet.Ajax.post({
endpoint: 'newsletters',
action: 'preview',
action: 'sendPreview',
data: options || {},
});
};