Ejemplo n.º 1
0
Archivo: DB.php Proyecto: hhgr/hhgolf
 /**
  * send a error mail to the admin / dev
  *
  * @param string $subject
  * @param string $htmlBody
  * @param int    $priority
  */
 private function mailToAdmin($subject, $htmlBody, $priority = 3)
 {
     if (function_exists('mailToAdmin')) {
         mailToAdmin($subject, $htmlBody, $priority);
     } else {
         if ($priority == 3) {
             $this->logger(array('debug', $subject . ' | ' . $htmlBody));
         } elseif ($priority > 3) {
             $this->logger(array('error', $subject . ' | ' . $htmlBody));
         } elseif ($priority < 3) {
             $this->logger(array('info', $subject . ' | ' . $htmlBody));
         }
     }
 }
Ejemplo n.º 2
0
        if ($key == $Email && $mail_check == 1 && !empty($val)) {
            if (!checkMail($val)) {
                $errm .= "<p class=\"error_messe\">【" . $key . "】はメールアドレスの形式が正しくありません。</p>\n";
                $empty_flag = 1;
            }
        }
    }
}
//差出人に届くメールをセット
if ($remail == 1) {
    $userBody = mailToUser($_POST, $dsp_name, $remail_text, $mailFooterDsp, $mailSignature, $encode);
    $reheader = userHeader($refrom_name, $to, $encode);
    $re_subject = "=?iso-2022-jp?B?" . base64_encode(mb_convert_encoding($re_subject, "JIS", $encode)) . "?=";
}
//管理者宛に届くメールをセット
$adminBody = mailToAdmin($_POST, $subject, $mailFooterDsp, $mailSignature, $encode, $confirmDsp);
$header = adminHeader($userMail, $post_mail, $BccMail, $to);
$subject = "=?iso-2022-jp?B?" . base64_encode(mb_convert_encoding($subject, "JIS", $encode)) . "?=";
if (($confirmDsp == 0 || $sendmail == 1) && $empty_flag != 1) {
    mail($to, $subject, $adminBody, $header);
    if ($remail == 1) {
        mail($post_mail, $re_subject, $userBody, $reheader);
    }
} else {
    if ($confirmDsp == 1) {
        /* ▼▼▼送信確認画面のレイアウト※編集可 オリジナルのデザインも適用可能▼▼▼ */
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />