Posted on : 2018-10-22 09:46:44 View Type: public
mark eting

Can you please provide me with the contact form/appointment send file so it can work properly? Thanks
Can you please provide me with the contact form/appointment send file so it can work properly? Thanks
Please provide me your FTP logins i will implement working contact form and Appointment form functionality. If i provide you file or code you would have problems to configure it with your forms.
Create a new file with name email_processor.php make sure its extension is .php and enter this code in this file.
<?php
$mail_to = '[email protected]'; //Replace with your Email
//Contact Form Submission
if($_POST['contact_form'] == 'YES') {
$message = '<table><tr><td>';
$message .= 'Your Name</td><td>';
$message .= $_POST['your_name'];
$message .= '</td></tr><tr><td>Your Email</td><td>';
$message .= $_POST['your_email'];
$message .= '</td></tr>';
$message .= '<tr><td>Your Website</td><td>';
$message .= $_POST['your_website'];
$message .= '</td></tr>';
$message .= '<tr><td>Your Message</td><td>';
$message .= $_POST['your_message'];
$message .= '</td></tr>';
$message .= '</table>';
$subject = "Contact Form Submission";
send_email($message, $mailto, $subject);
HEADER("LOCATION: thankyou.html");
}
//Footer Form submission
if($_POST['form_submission'] == 'YES') {
$message = '<table><tr><td>';
$message .= 'Your Name</td><td>';
$message .= $_POST['your_name'];
$message .= '</td></tr><tr><td>Your Phone</td><td>';
$message .= $_POST['your_phone'];
$message .= '</td></tr></table>';
$subject = "Footer Email Submission";
send_email($message, $mailto, $subject);
HEADER("LOCATION: thankyou.html");
}
function send_email($message, $mailto, $subject) {
//getting set email addresses from database.
$from_email = get_option('email_from');
$reply_to = get_option('email_to');
$mailheaders = "From:".$from_email;
$mailheaders .="Reply-To:".$reply_to;
$from = $from_email;
$headers = "FROM: ".$from;
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
$message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$message . "\n\n";
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$filename}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
mail($mailto, $subject, $message, $headers);
}// Send Email Function.
Now go to you contact.html and make sure your form is sending data to email_processor.php
<form accept-charset="email_processor.php" method="post">
<div class="row">
<div class="medium-6 columns">
<input type="text" name="your_name" required placeholder="Name">
</div>
<div class="medium-6 columns">
<input type="text" name="your_email" required placeholder="Email">
</div>
<div class="medium-12 columns">
<input type="text" name="your_website" placeholder="Website">
</div>
<div class="medium-12 columns">
<textarea placeholder="Your message" name="your_message" required rows="6"></textarea>
<input type="hidden" name="contact_form" value="YES" />
<input class="button btn-primary" type="submit" value="Send!" />
</div>
</div>
</form>
Same you can do with appointment page. Let me know if this helps you else i can provide you further instructions thanks.
Hello I tried sending 3 forms 1. the contact form - I havent received an email 2. appointment form - havent recieved an email 3. the quick form at the footer - havent received an email. Please look at this not sure what the issue is
Please check the spam folder,
Appointment form should send you message properly if you are not receiving check your spam folder.
in Contact.html page you need to fix this. http://take.ms/vip17
After form submission you are being taken to thankyou.html which you can create to say thanks to submiting the form.
For footer, Please modify footer form. send a hidden field <input type="hidden" name="form_submission" value="YES" /> and change the names of fields the names are being received in form_processor.php name="your_name" name="your_phone"
Thanks