|
$EMAIL_MAX){$_message= substr($_message, 0, $EMAIL_MAX);}else{$_message = $_message;}
if(strlen($_message) > $SMS_MAX){$_message2 = substr($_message, 0, $SMS_MAX);}else{$_message2 = $_message;}
}
//store the recipient(s)
$_to = array();
//now get the recipient(s)
$_to[] = "dasunse@gmail.com";
//define the subject
if(!$_subject){$_subject = "E-Mail from your contact form";}
if(!$_name){$_name = "CONTACT FORM";}
if(!$_email){$_email = $_name;}
//set the headers
$_header = "From: $_name < $_email >" . "\r\n" .
"Reply-To: ".$_email."\r\n" .
"Super-Simple-Mailer: supersimple.org";
//we can send up to 2 emails (EMAIL and/or SMS)
if(count($_to) > 2){ $_to = array_slice($_to,0,2);}
for($i=0;$i
window.onload = function(){showThanks(thanks_message);}
";
}
?>
|
|
|
|