// /apps/frontend/controllers/DswhController.php line 814:
if ($status == 'Unsubscribed') {
$subscriber->saveStatus(ListSubscriber::STATUS_UNSUBSCRIBED);
$trackUnsubscribe = CampaignTrackUnsubscribe::model()->findByAttributes(array(
'campaign_id' => $campaign->campaign_id,
'subscriber_id' => $subscriber->subscriber_id,
));
if (!empty($trackUnsubscribe)) {
Yii::app()->end();
}
$trackUnsubscribe = new CampaignTrackUnsubscribe();
$trackUnsubscribe->campaign_id = $campaign->campaign_id;
$trackUnsubscribe->subscriber_id = $subscriber->subscriber_id;
$trackUnsubscribe->note = 'Unsubscribed via Web Hook!';
$trackUnsubscribe->ip_address = Yii::app()->request->userHostAddress;
$trackUnsubscribe->user_agent = StringHelper::truncateLength(Yii::app()->request->userAgent, 255);
$trackUnsubscribe->save(false);
Yii::app()->end();
}
Was this added in the latest MailWizz release? Because that is not in the version I have, one release prior to the latest.It actually does:
PHP:// /apps/frontend/controllers/DswhController.php line 814: if ($status == 'Unsubscribed') { $subscriber->saveStatus(ListSubscriber::STATUS_UNSUBSCRIBED); $trackUnsubscribe = CampaignTrackUnsubscribe::model()->findByAttributes(array( 'campaign_id' => $campaign->campaign_id, 'subscriber_id' => $subscriber->subscriber_id, )); if (!empty($trackUnsubscribe)) { Yii::app()->end(); } $trackUnsubscribe = new CampaignTrackUnsubscribe(); $trackUnsubscribe->campaign_id = $campaign->campaign_id; $trackUnsubscribe->subscriber_id = $subscriber->subscriber_id; $trackUnsubscribe->note = 'Unsubscribed via Web Hook!'; $trackUnsubscribe->ip_address = Yii::app()->request->userHostAddress; $trackUnsubscribe->user_agent = StringHelper::truncateLength(Yii::app()->request->userAgent, 255); $trackUnsubscribe->save(false); Yii::app()->end(); }
What the heck, I swear this isn't in my DswhController...It's since 1.3.7.3:
View attachment 2840
Naw, this is first time I'm using Elastic Email. In any case, glad it is solved!Dunno, if i am not mistaken it has been added after a discussion with you