From fe2bdb2e38321d57f25abc0323301e3bc800a5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 23 Jan 2020 14:58:40 -0500 Subject: [PATCH] commentsubmit: fix Reply-To --- content/vendor/form-comments/commentsubmit.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php index 39d81b4..5498b95 100644 --- a/content/vendor/form-comments/commentsubmit.php +++ b/content/vendor/form-comments/commentsubmit.php @@ -52,8 +52,9 @@ if(empty($_POST['name']) || // Create the email and send the message // Add your email address + $local_address = "heckyel@riseup.net"; $recipients = array( - "heckyel@riseup.net", + "$local_address", "$email_address", // more emails ); @@ -72,11 +73,12 @@ Email: {$email_address} Slug: {$slug} {$web}\n {$comment}\n\n -¿Usted no ha escrito este comentario? escríbenos a: heckyel[at]hyperbola[dot]info +¿Usted no ha escrito este comentario? +Responde este mensaje para eliminar el comentario. EOT; $headers = "From: noreply@conocimientoslibres.tuxfamily.org\n"; // Using something like noreply@yourdomain.com. - $headers .= "Reply-To: $email_address"; + $headers .= "Reply-To: $local_address"; mail($to,$email_subject,utf8_decode($email_body),$headers); // Rediret to current post