replaced shell_exec for php mail function

This commit is contained in:
Naglfar
2019-11-12 17:48:17 +00:00
parent cd6f3a0160
commit e5392cefcb
+2 -1
View File
@@ -9,6 +9,7 @@ $interest = $_GET['interest'];
$pubkey = $_GET['pubkey'];
$tv = $_GET['tv'];
$from = 'From: www-data <[email protected]>';
$destination_addr = "[email protected]";
$subject = "New User Registration";
$mailbody = "A new user has tried to register.
@@ -24,7 +25,7 @@ if ( $tv != "tildeverse" ) {
die();
}
shell_exec("echo '$mailbody' | /usr/bin/mail -s '$subject' $destination_addr ");
mail($destination_addr, $subject, $mailbody, $from);
// In the future, here, we *should* be able to build a process that
// somehow auto-verifies the user, and instead of email, it'll kick off the new user process here