mirror of
https://github.com/ThunixdotNet/www.git
synced 2026-01-23 23:10:17 +00:00
Replace Email Address with the Return Address
This commit is contained in:
@@ -3,7 +3,7 @@ include "../config.php";
|
|||||||
// This code is licensed under the AGPL 3 or later by ubergeek (https://tildegit.org/ubergeek)
|
// This code is licensed under the AGPL 3 or later by ubergeek (https://tildegit.org/ubergeek)
|
||||||
|
|
||||||
$name = $_GET['contact_name'];
|
$name = $_GET['contact_name'];
|
||||||
$email = $_GET['email_address'];
|
$return_addr = $_GET['email_address'];
|
||||||
$type = $_GET['type'];
|
$type = $_GET['type'];
|
||||||
$body = $_GET['message'];
|
$body = $_GET['message'];
|
||||||
|
|
||||||
@@ -14,7 +14,6 @@ $subject = "Contact Form";
|
|||||||
$mailbody = "The following submission via the contact form was recieved:
|
$mailbody = "The following submission via the contact form was recieved:
|
||||||
|
|
||||||
Real Name: $name
|
Real Name: $name
|
||||||
Email Address: $email
|
|
||||||
Type: $type
|
Type: $type
|
||||||
Message: $body";
|
Message: $body";
|
||||||
|
|
||||||
@@ -24,7 +23,7 @@ if ( $tv != "tildeverse" ) {
|
|||||||
die();
|
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
|
// In the future, here, we *should* be able to build a process that
|
||||||
// auto opens an issue in the tildegit project
|
// auto opens an issue in the tildegit project
|
||||||
|
|||||||
Reference in New Issue
Block a user