Please fill in your name.'; echo '
Try again'; } elseif (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) { echo '

Please provide a valid email address.

'; echo '
Try again'; } /* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */ elseif (mail('maintainers@einsteintoolkit.org','New Einstein Toolkit test account request received',$message,'From: RegistrationBot@einsteintoolkit.org')) { echo '

Your request for a test account has been successfully submitted. You will hear from us soon.

'; echo '
Home'; } else { echo '

Unfortunately, there was a problem requesting an account.

'; echo 'Go back to try again?'; } ?>