I'm trying to set up the contact form of my site.
The script uses the template contact_me.php
. The relevant excerpt of the form here:
// create email body and send it
$to = 'jose.alberto.lara@gmail.com'; // PUT YOUR EMAIL ADDRESS HERE
$email_subject = "Contacto con Ecopolíticas: $name"; // EDIT THE EMAIL SUBJECT LINE HERE
$email_body = "You have received a new message from your website's contact form.\n\n"."Here
are the details:\n\nName: $name\n\nPhone: $phone\n\nEmail:
$email_address\n\nMessage:\n$message";
$headers = "From: noreply@ecopoliticas.com\n";
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
return true;
When I fill the form it seems to work; however, I don't receive any mail.