know campaign mail or not

Hello,

Can you please tell me how can i check the sending mail is campaign generated or transaction mail in /apps/common/models/DeliveryServerSmtp.php under sendEmail function.

Thanks
Ankit Naredi
 
You can try something like:
PHP:
if ( MW_IS_CLI && Yii::app()->command->name == 'send-campaigns' ) {
    // this is campaign generated
}
if ( MW_IS_CLI && Yii::app()->command->name == 'send-transactional-emails' ) {
    // this is transactional
}
 
Back
Top