commentsubmit: fix Reply-To
This commit is contained in:
parent
ab2be3eab0
commit
fe2bdb2e38
@ -52,8 +52,9 @@ if(empty($_POST['name']) ||
|
|||||||
|
|
||||||
// Create the email and send the message
|
// Create the email and send the message
|
||||||
// Add your email address
|
// Add your email address
|
||||||
|
$local_address = "heckyel@riseup.net";
|
||||||
$recipients = array(
|
$recipients = array(
|
||||||
"heckyel@riseup.net",
|
"$local_address",
|
||||||
"$email_address",
|
"$email_address",
|
||||||
// more emails
|
// more emails
|
||||||
);
|
);
|
||||||
@ -72,11 +73,12 @@ Email: {$email_address}
|
|||||||
Slug: {$slug}
|
Slug: {$slug}
|
||||||
{$web}\n
|
{$web}\n
|
||||||
{$comment}\n\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;
|
EOT;
|
||||||
|
|
||||||
$headers = "From: noreply@conocimientoslibres.tuxfamily.org\n"; // Using something like noreply@yourdomain.com.
|
$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);
|
mail($to,$email_subject,utf8_decode($email_body),$headers);
|
||||||
|
|
||||||
// Rediret to current post
|
// Rediret to current post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user