Just updated to v1.4.1 a few things:
a) The ElasticEmail {unsubscribe} insert is bugged. It only works in test emails, not when actual campaign is sent. Further, ElasticEmail is now requiring users to insert their company name and address in emails... this should probably be integrated into MailWizz too.
b) Last year I raised a concern about when new subscribers are added while a campaign is running; instead of only emailing existing subscribers when a campaign was a started, MailWizz continues to update the campaign receipts as new ones are added... potentially never ending a campaign. Was this fixed?
c) Any idea why my extension is not working?
a) The ElasticEmail {unsubscribe} insert is bugged. It only works in test emails, not when actual campaign is sent. Further, ElasticEmail is now requiring users to insert their company name and address in emails... this should probably be integrated into MailWizz too.
b) Last year I raised a concern about when new subscribers are added while a campaign is running; instead of only emailing existing subscribers when a campaign was a started, MailWizz continues to update the campaign receipts as new ones are added... potentially never ending a campaign. Was this fixed?
c) Any idea why my extension is not working?
Code:
<?php defined('MW_PATH') || exit('No direct script access allowed');
/**
* Example Extension
*
* @package MailWizz EMA
* @subpackage Example
* @author Serban George Cristian <cristian.serban@mailwizz.com>
* @link http://www.mailwizz.com/
* @copyright 2013-2015 MailWizz EMA (http://www.mailwizz.com)
* @license http://www.mailwizz.com/license/
*/
class ExampleExt extends ExtensionInit
{
// name of the extension as shown in the backend panel
public $name = 'Example';
// description of the extension as shown in backend panel
public $description = 'This is an example extension';
// current version of this extension
public $version = '1.0';
// minimum app version
public $minAppVersion = '1.3.6.2';
// the author name
public $author = 'Your name';
// author website
public $website = 'http://www.domain.com/';
// contact email address
public $email = 'dev@domain.com';
/**
* in which apps this extension is allowed to run
* '*' means all apps
* available apps: customer, backend, frontend, api, console
* so you can use any variation,
* like: array('backend', 'customer'); or array('frontend');
*/
public $allowedApps = array('*');
/**
* This is the reverse of the above
* Instead of writing:
* public $allowedApps = array('frontend', 'customer', 'api', 'console');
* you could say:
* public $notAllowedApps = array('backend');
*/
public $notAllowedApps = array();
// cli enabled
// since cli is a special case, we need to explicitly enable it
// do it only if you need to hook inside console hooks
public $cliEnabled = true;
// can this extension be deleted? this only applies to core extensions.
protected $_canBeDeleted = false;
// can this extension be disabled? this only applies to core extensions.
protected $_canBeDisabled = false;
/**
* The run method is the entry point of the extension.
* This method is called by mailwizz at the right time to run the extension.
*/
public function run()
{
Yii::app()->hooks->applyFilters('campaigns_get_common_tags_search_replace', function($searchReplace) {
$searchReplace['[xyz]'] = ' ';
return $searchReplace;
});
}
}