updated FormSpree.io settings

This commit is contained in:
developtheweb 2021-02-19 13:56:22 -05:00
parent 396a6b6a20
commit 9cc8494859
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-8 col-lg-offset-2"> <div class="col-lg-8 col-lg-offset-2">
<form action="//formspree.io/{{ site.email }}" method="POST" name="sentMessage" id="contactForm" novalidate> <form action="//formspree.io/f/mrgovrza" method="POST" name="sentMessage" id="contactForm" novalidate>
<div class="row control-group"> <div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls"> <div class="form-group col-xs-12 floating-label-form-group controls">
<label for="name">Name</label> <label for="name">Name</label>

View file

@ -22,7 +22,7 @@ $message = $_POST['message'];
if (empty($_POST['_gotcha'])) { // If hidden field was filled out (by spambots) don't send! if (empty($_POST['_gotcha'])) { // If hidden field was filled out (by spambots) don't send!
// Create the email and send the message // Create the email and send the message
$to = 'contact@stevenmilanese.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to. $to = 'developtheweb@protonmail.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
$email_subject = "Website Contact Form: $name"; $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"; $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@stevenmilanese.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com. $headers = "From: noreply@stevenmilanese.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.