<?php

	include "library.php";

	$cxn = start_code();

	page_header( "", $cxn );
	
	
			/* get variables */

	$sendid = val( $_GET, "sendid" );

	$code = val( $_GET, "code" );


		/* check parameters */

	crash_if_missing( $sendid, "send id missing in send verification email", $cxn );

	crash_if_missing( $code, "verification code missing in send verification email", $cxn );


	$email = send_verification_email( $sendid, $code, $cxn, "live" );

	echo black( "A verification email has been sent to ".$email."<br><br>" );

	echo show_home_link();

?>

