Set $_GET[\'email\'].'; exit; }; foreach ( $server as $s ) { $message .= sprintf( '%s: %s', $s, $_SERVER[$s] ) . PHP_EOL; }; $headers = 'From: ' . $from . PHP_EOL . 'Reply-To: ' . $from . PHP_EOL . 'X-Mailer: PHP/' . phpversion(); if ( isset( $_GET['send'] ) && $_GET['send'] === 'true' ) { $success = mail( $to, $subject, $message, $headers ); } else { echo 'Set "' . './?email=' . $to . '&send=true" to send a test e-mail.'; }; if ( isset( $success ) ) { echo 'E-mail sent to: ' . $to; echo '
'; echo 'Successful mail?: YES' : 'style="color:red;">NO' ) . ''; } else { echo '
'; echo 'E-mail set as: '.$to; }; echo '
'; echo ''; echo ''; foreach ( $server as $s ) { echo ''; }; echo '
$_SERVER[\'' . $s . '\']' . $_SERVER[$s] . '
'; if ( isset( $success ) ) { echo ''; }; ?>