in /apps/common/models/DeliveryServerElasticemailWebApi.php change this...
To this...
This helps better identify that the response is the job ID (the unique ID ElasticEmail returns upon successful send) and identifies if ElasticEmail returns an error (I've had an issue with their API returning 403 error but MailWizz not properly detecting that).
Code:
if ($response['status'] != 'success' || strpos($response['message'], '-') !== false) {
throw new Exception(Yii::app()->ioFilter->stripClean($response['message']));
}
Code:
if ($response['status'] != 'success' || substr_count($response['message'], '-') != 4 || strlen(trim($response['message'])) != 36 || stripos($response['message'], 'error') !== false) {
throw new Exception(Yii::app()->ioFilter->stripClean($response['message']));
}
Last edited: