Replace Email Address with the Return Address

This commit is contained in:
Blade of Darkness 2022-03-08 18:31:21 +01:00
parent db7b6282ce
commit 269bd5ea1f
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@ include "../config.php";
// This code is licensed under the AGPL 3 or later by ubergeek (https://tildegit.org/ubergeek)
$name = $_GET['contact_name'];
$email = $_GET['email_address'];
$return_addr = $_GET['email_address'];
$type = $_GET['type'];
$body = $_GET['message'];
@ -14,7 +14,6 @@ $subject = "Contact Form";
$mailbody = "The following submission via the contact form was recieved:
Real Name: $name
Email Address: $email
Type: $type
Message: $body";
@ -24,7 +23,7 @@ if ( $tv != "tildeverse" ) {
die();
}
shell_exec("echo '$mailbody' | /usr/bin/mail -s '$subject' $destination_addr ");
shell_exec("echo '$mailbody' | /usr/bin/mail -s '$subject' -r '$return_addr' $destination_addr ");
// In the future, here, we *should* be able to build a process that
// auto opens an issue in the tildegit project