commentsubmit: fix Reply-To

This commit is contained in:
Jesús 2020-01-23 14:58:40 -05:00
parent ab2be3eab0
commit fe2bdb2e38
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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