Update contact_me.php

This commit is contained in:
Adil Sadqi 2023-04-02 22:19:07 +00:00 committed by GitHub
parent 89203dcb44
commit 6d06e68526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,10 +22,10 @@ $message = $_POST['message'];
if (empty($_POST['_gotcha'])) { // If hidden field was filled out (by spambots) don't send!
// Create the email and send the message
$to = 'yourname@yourdomain.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
$to = 'adil@asadqi.com'; // Add your email address inbetween the '' replacing adil@asadqi.com - This is where the form will send a message to.
$email_subject = "Website Contact Form: $name";
$email_body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nPhone: $phone\n\nMessage:\n$message";
$headers = "From: noreply@yourdomain.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
$headers = "From: adil@asadqi.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
return true;