?> </td> </tr> <?php } ?> <?php foreach ($emailServer as $key => $value) { ?> <tr> <td class='siteName'><?php echo $key; ?> </td> <td class='status'><?php emailStatus($value['host'], $value['port']); ?> </td> </tr> <?php } ?> </tbody> </table> <p> This site checks the status of all Credit Mail Experts sites and mail servers.<br> Sites with a <img src='/img/down-status.png' alt='"Offline!"' height='20px'> status will be back up as soon as possible. </p> </div>
/** * Master email function, use for all emails (public calendar & admin console) except newsletter mailings, wrapper for PHPMailer. * @since 2.0.0 * @version 2.2.0 * @param string $toName name of email recipient * @param string|array $toAddress email address of recipient OR array of recipients array($name => $address) * @param string $subj subject line of the email * @param string $msg message body/contents of the email * @param string $fromName name of email sender * @param string $fromAddress email Address of email sender * @param array $attach Files to attach to email. (Data String, Filename, MIME Type) * @param boolean $debug [optional] true = output PHPMailer() SMTP debug info, false = no output (Default:false) * @return void */ function reMail($toName, $toAddress, $subj, $msg, $fromName = '', $fromAddress = '', $attach = NULL, $debug = false) { global $hc_cfg, $hc_lang_core, $hc_lang_config; if (emailStatus() != 1) { return -1; } emailStop(); if ($hc_cfg[78] == '' || $hc_cfg[79] == '') { exit($hc_lang_core['NoEmail']); } include_once HCPATH . HCINC . '/phpmailer/class.phpmailer.php'; $fromName = $fromName == '' ? $hc_cfg[79] : $fromName; $fromAddress = $fromAddress == '' ? $hc_cfg[78] : $fromAddress; $mail = new PHPMailer(); $host = gethostbynamel(''); $mail->AddCustomHeader($mail->HeaderLine('X-Helios_Calendar-Version', $hc_cfg[49])); $mail->AddCustomHeader($mail->HeaderLine('X-Helios_Calendar-ID', md5($hc_cfg[19]))); $mail->AddCustomHeader($mail->HeaderLine('X-Helios_Calendar-IP', $host[0])); /* End Edit Restriction */ $mail->CreateHeader(); $mail->IsHTML(true); $mail->CharSet = defined('CONVERT_CHRSET') && function_exists('mb_convert_encoding') ? CONVERT_CHRSET : $hc_lang_config['CharSet']; if ($attach != NULL) { $mail->AddStringAttachment("{$attach['0']}", "{$attach['1']}", "base64", "{$attach['2']}"); } if (is_array($toAddress)) { $mail->SingleToArray = $toAddress; foreach ($toAddress as $name => $address) { $mail->AddAddress($address, $name); } } else { $mail->AddAddress($toAddress, $toName); } if ($hc_cfg[71] == 1) { $mail->IsSMTP(); $mail->SMTPKeepAlive = false; $mail->SMTPDebug = $debug; $mail->Host = $hc_cfg[72]; $mail->Port = $hc_cfg[73]; if ($hc_cfg[77] == 1) { $mail->SMTPAuth = true; $mail->Username = $hc_cfg[75]; $mail->Password = base64_decode($hc_cfg[76]); } if ($hc_cfg[74] == 1) { $mail->SMTPSecure = "tls"; } elseif ($hc_cfg[74] == 2) { $mail->SMTPSecure = "ssl"; } } else { $mail->IsMail(); } $mail->Sender = $hc_cfg[78]; $mail->From = $fromAddress; $mail->FromName = cOut($fromName); $mail->AddReplyTo($fromAddress, $fromName); $mail->Subject = $subj; $mail->Body = $msg; $mail->AltBody = strip_tags(str_replace("<br />", "\n", $msg)); try { $mail->Send(); } catch (phpmailerException $e) { exit($e); } catch (Exception $e) { exit($e); } if ($hc_cfg[71] == 1) { $mail->SmtpClose(); } emailGo(); }