$value ) { //print '
'. $key. ' --> '.$value; switch ( $key ) { case 'mailto': $to = $value; break; case 'mailfrom': $from = $value; break; case 'subject': $subj = $value; break; case 'mailafterurl': $after = $value; break; default: $msg = $msg."\n\n".$key.': '.$value; } } //echo " $subj
$after
$to
$from
$msg "; $xtra = "From: ".$from."\nX-Mailer: PHP/" . phpversion(); if ( !mail($to,$subj,$msg,$xtra) ) die ( "Could not send mail." ); print ' '; ?>