L Lakjin Active Member May 25, 2017 #1 Is there documentation listing all MailWizz hooks? Im specifically looking for a filter that runs before any email is sent by MailWizz (transactional, welcome email, subscription confirm, campaign, etc.) so I can add someone to each email we send.
Is there documentation listing all MailWizz hooks? Im specifically looking for a filter that runs before any email is sent by MailWizz (transactional, welcome email, subscription confirm, campaign, etc.) so I can add someone to each email we send.
twisted1919 Administrator Staff member May 25, 2017 #2 @Lakjin - you're looking for the 'delivery_server_before_send_email' filter hook: PHP: Yii::app()->hooks->addFilter('delivery_server_before_send_email', function($params, $server){ // do something here. // done return $params; }); You can find all mailwizz filters with: Code: grep -niro 'hooks->applyFilters(' /path/to/mailwizz and all actions with: Code: grep -niro 'hooks->doAction(' /path/to/mailwizz
@Lakjin - you're looking for the 'delivery_server_before_send_email' filter hook: PHP: Yii::app()->hooks->addFilter('delivery_server_before_send_email', function($params, $server){ // do something here. // done return $params; }); You can find all mailwizz filters with: Code: grep -niro 'hooks->applyFilters(' /path/to/mailwizz and all actions with: Code: grep -niro 'hooks->doAction(' /path/to/mailwizz