diff --git a/includes/contact.php b/includes/contact.php index afcd067..59d5570 100644 --- a/includes/contact.php +++ b/includes/contact.php @@ -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