If you would like to book a show with Alex or purchase one of his albums
please contact....

"; echo ""; }else{ ?>


EOF_LINE; // for 'ADD' for($i=1; $i<50; $i++){ // if u use more than 50, u must modify '50' if(!$_POST['add_title_'.$i]) continue; $title=$_POST['add_title_'.$i]; $value=$_POST['add_value_'.$i]; $join_html.=" "; } $join_html.= <<
FormMail from \Alexweissmusic.com\
From: $_POST[mail_from_name] <$_POST[mail_from_email]>
$title $value
Subject: $_POST[mail_subject]
$body
EOF_LINE; return $join_html; } function send_mail_action($snd_mail,$snd_name){ if($GLOBALS['it_uses'] != 'yes') alert_msg("Failed: check install-1"); if($snd_mail) $_POST['mail_to_email'] = $snd_mail; if($snd_name) $_POST['mail_to_name'] = $snd_name; if(!org_mail($_POST['mail_to_email'])) alert_msg('CHECK: Wrong Type Email Address'); if(!org_mail($_POST['mail_from_email'])) alert_msg('CHECK: Wrong Type Email Address'); if(!$_POST['mail_subject']) alert_msg('CHECK: Subject.'); if(!$_POST['mail_to_name']) alert_msg('CHECK: Your Name.'); if(!$_POST['mail_from_name']) alert_msg('CHECK: Your Name.'); if(!$_POST['mail_body']) alert_msg('CHECK: Object'); $mail_to = "\"$_POST[mail_to_name]\" <$_POST[mail_to_email]>"; $mail_from = "\"$_POST[mail_from_name]\" <$_POST[mail_from_email]>"; $head = "From:$_POST[mail_from_email]\n"; $head .="Content-Type: text/html\n"; $head .="Reply-To:$_POST[mail_from_email]\n"; $head .="X-Mailer:PHP/".phpversion(); $body=nl2br($_POST['mail_body']); $body=stripslashes($body); $body=mail_body_html($body); return @mail($mail_to,$_POST['mail_subject'],$body,$head); } function org_mail($mail){ if(!preg_match("/\S+@(\S+\.\S+)/",$mail,$Tmp)) return ; // if(!checkdnsrr($Tmp[1], "MX") and !checkdnsrr($Tmp[1], "A")) return ; return 1; } function alert_msg($msg,$after_url=""){ $msg=preg_replace("/\"/","'",$msg); echo " "; exit; } ?>