{$mod_strings['LBL_MODULE_NAME']}";
$params[] = $mod_strings['LBL_CAMPAIGN_DIAGNOSTICS'];
echo getClassicModuleTitle('Campaigns', $params, true);
//echo "
";
//put all rows returned into an array
$mbox = array();
while ($mbox_row = $focus->db->fetchByAssoc($mbox_res)){$mbox[] = $mbox_row;}
$mbox_msg = ' ';
//if the array is not empty, then set "good" message
if(isset($mbox) && count($mbox)>0){
$mboxTable .= "" .count($mbox) ." ". $mod_strings['LBL_MAILBOX_CHECK1_GOOD']." . |
";
$mboxTable .= "".$mod_strings['LBL_MAILBOX_NAME']." | "
. " ".$mod_strings['LBL_LOGIN']." | "
. " ".$mod_strings['LBL_MAILBOX']." | "
. " ".$mod_strings['LBL_SERVER_URL']." | "
. " ".$mod_strings['LBL_LIST_STATUS']." |
";
foreach($mbox as $details){
$mboxTable .= "".$details['name']." | ";
$mboxTable .= "".$details['email_user']." | ";
$mboxTable .= "".$details['mailbox']." | ";
$mboxTable .= "".$details['server_url']." | ";
$mboxTable .= "".$details['status']." |
";
}
}else{
//if array is empty, then set "bad" message and increment health counter
$mboxTable .= "". $mod_strings['LBL_MAILBOX_CHECK1_BAD']." |
";
$email_health =$email_health +1;
}
$mboxTable.= '
' ;
$ss->assign("MAILBOXES_DETECTED_MESSAGE", $mboxTable);
//email settings configured
$conf_msg="";
if (strstr($focus->settings['notify_fromaddress'], 'example.com')){
//if from address is the default, then set "bad" message and increment health counter
$conf_msg .= " ".$mod_strings['LBL_MAILBOX_CHECK2_BAD']." | ";
$email_health =$email_health +1;
}else{
$conf_msg .= "
".$mod_strings['LBL_MAILBOX_CHECK2_GOOD']." |
";
$conf_msg .= "".$mod_strings['LBL_WIZ_FROM_NAME']." | "
. " ".$mod_strings['LBL_WIZ_FROM_ADDRESS']." | "
. " ".$mod_strings['LBL_MAIL_SENDTYPE']." | ";
if($focus->settings['mail_sendtype']=='SMTP'){
$conf_msg .= " ".$mod_strings['LBL_MAIL_SMTPSERVER']." | "
. " ".$mod_strings['LBL_MAIL_SMTPUSER']." |
";
}else{$conf_msg .= "";}
$conf_msg .= "".$focus->settings['notify_fromname']." | ";
$conf_msg .= "".$focus->settings['notify_fromaddress']." | ";
$conf_msg .= "".$focus->settings['mail_sendtype']." | ";
if($focus->settings['mail_sendtype']=='SMTP'){
$conf_msg .= "".$focus->settings['mail_smtpserver']." | ";
$conf_msg .= "".$focus->settings['mail_smtpuser']." |
";
}else{$conf_msg .= "";}
}
$conf_msg .= '
';
$ss->assign("EMAIL_SETTINGS_CONFIGURED_MESSAGE", $conf_msg);
$email_setup_wiz_link='';
if ($email_health>0){
if (is_admin($current_user)){
$email_setup_wiz_link="