Replace Email Address with the Return Address
This commit is contained in:
parent
db7b6282ce
commit
269bd5ea1f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue