Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors', '1');
- // your email address
- $youremail = "dvdplas@gmail.com";
- // field validation
- if ($cellfex_forms_Col1=="" || $cellfex_forms_Col2=="" || $cellfex_forms_Col3=="" || $cellfex_forms_Col4=="" || $cellfex_forms_Col5=="" || $cellfex_forms_Col6=="" || $locatie=="" || $opmerking=="")
- {
- print ("Alle velden zijn verplicht, ga terug en probeer het opnieuw");
- }
- else {
- // send email
- $headers = "From: ".$cellfex_forms_Col1." <".$cellfex_forms_Col5.">\r\n";
- $headers .= 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- $subject = "Email";
- $message = "<strong>Naam:</strong> ".$cellfex_forms_Col1." <br />
- <strong>Adres:</strong> ".$cellfex_forms_Col2." <br />
- <strong>Postcode:</strong> ".$cellfex_forms_Col3." <br />
- <strong>Plaats:</strong> ".$cellfex_forms_Col4." <br />
- <strong>E-mail:</strong> ".$cellfex_forms_Col5." <br />
- <strong>Telefoon:</strong> ".$cellfex_forms_Col6." <br />
- <strong>Locatie:</strong> ".$locatie." <br />
- <strong>Opmerking:</strong><br />
- ".$opmerking."<br />
- ";
- mail( $youremail, $subject, $message, $headers);
- print"Bedankt ".$cellfex_forms_Col1.", je aanvraag is verzonden.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement