forked from team/site
1
0
Fork 0

send mail to admins

This commit is contained in:
Ben Harris 2018-06-11 18:39:13 -04:00
parent 4b39f18723
commit f030ae41fb
1 changed files with 2 additions and 2 deletions

View File

@ -35,13 +35,13 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
if ($message == "") { // no validation errors
$msgbody = "desired username: {$_REQUEST["username"]}</strong>
$msgbody = "desired username: {$_REQUEST["username"]}
contact email: {$_REQUEST["email"]}
reason: {$_REQUEST["interest"]}
ssh key:
{$_REQUEST["sshkey"]}";
if (mail('ben', 'new tilde.team signup', $msgbody, "Reply-To: {$_REQUEST["email"]}")) {
if (mail('sudoers', 'new tilde.team signup', $msgbody, "Reply-To: {$_REQUEST["email"]}")) {
echo '<div class="alert alert-success" role="alert">
email sent! i\'ll get back to you soon with login instructions! <a href="/">back to tilde.team home</a>
</div>';