summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php11
-rw-r--r--send_email.php6
2 files changed, 14 insertions, 3 deletions
diff --git a/index.php b/index.php
index 924d4b3..b90d730 100644
--- a/index.php
+++ b/index.php
@@ -71,6 +71,9 @@ $exitRemailers = array_intersect($exitRemailers, $allowedEntryExitRemailers);
<label for="from">From:</label>
<input type="text" name="from" id="from" placeholder="Please use this format: Jane Doe &lt;jane@nowhere.com&gt;">
<br>
+ <label for="reply_to">Reply-To:</label>
+ <input type="text" name="reply_to" id="reply_to" placeholder="Please use this format: Jane Doe &lt;jane@nowhere.com&gt;">
+ <br>
<label for="to">To:</label>
<input type="text" name="to" id="to">
<br>
@@ -94,7 +97,13 @@ $exitRemailers = array_intersect($exitRemailers, $allowedEntryExitRemailers);
<div class="instructions-frame">
<h2>About the Interface</h2>
<p>This web interface is built using the following technologies: HTML5 CSS3 PHP</p>
- <p>Contact for abuses: <a href="">abuse (at) domain</a></p>
+ <div class="github-link">
+ <a href="https://github.com/gabrix73/yamn-web/" target="_blank">
+ <img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" width="24" height="24">
+ View on GitHub
+ </a>
+ </div>
+ <p>Contact for abuses: <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;%61%62%75%73%65%40%76%69%72%65%62%65%6E%74%2E%61%72%74">abuse (at) virebent dot art</a></p>
</div>
<footer>
<p>&copy; 2024 VICTOR - Hostile Communication Center & &#169; FUCK Design All Rights Reserved.</p>
diff --git a/send_email.php b/send_email.php
index 7b645da..ff2c5be 100644
--- a/send_email.php
+++ b/send_email.php
@@ -4,6 +4,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$middleRemailer = $_POST['middle_remailer'];
$exitRemailer = $_POST['exit_remailer'];
$from = $_POST['from'];
+ $replyTo = $_POST['reply_to'];
$to = $_POST['to'];
$subject = $_POST['subject'];
$newsgroups = $_POST['newsgroups'];
@@ -27,7 +28,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!empty($references)) {
$headers .= "References: $references\n";
}
- $messageContent = $headers . "From: $from\nTo: $to\nSubject: $subject\n";
+ $messageContent = $headers . "From: $from\nReply-To: $replyTo\nTo: $to\nSubject: $subject\n";
if (!empty($newsgroups)) {
$messageContent .= "Newsgroups: $newsgroups\n";
}
@@ -46,6 +47,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($return_var_send != 0) {
$logEntry = "Date: " . date('Y-m-d H:i:s') . "\n";
$logEntry .= "From: $from\n";
+ $logEntry .= "Reply-To: $replyTo\n";
$logEntry .= "To: $to\n";
$logEntry .= "Subject: $subject\n";
if (!empty($newsgroups)) {
@@ -69,7 +71,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($return_var_send == 0) {
echo "Email sent successfully!<br>";
- echo "<a href='https://home'>Return to Home</a>";
+ echo "<a href='https://yamnweb.virebent.art'>Return to Home</a>";
} else {
echo "Error sending email.";
}