get( 'contactform', 'contactform' ) as $key=>$detail) {
if ($detail['req']=='required'&&$form[$key]=='') $error.='Field '.$detail['ttl']." is required
";
if ($detail['regex']!=''&&!eregi(stripslashes($detail['regex']),$form[$key])) {
$error.='Field '.$detail['ttl']." is not valid
";
}
$msg.=$detail['ttl'].": ".$form[$key]."\r\n";
}
$from=($SMTheme->get( 'general','sitename' ))?$SMTheme->get( 'general','sitename' ):get_bloginfo('name');
if ($error=='') {
wp_mail($SMTheme->get( 'contactform', 'email' ), 'Message from '.$from, $msg);
$error=$SMTheme->_( 'emailok' );
$errorcode='green';
}
}
?>
get( 'contactform','address' ) != '' ) {?>