Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2.  
  3. error_reporting(E_ALL);
  4. ini_set('display_errors', '1');
  5.  
  6.  
  7. // your email address
  8. $youremail = "dvdplas@gmail.com";
  9.  
  10. // field validation
  11. if ($cellfex_forms_Col1=="" || $cellfex_forms_Col2=="" || $cellfex_forms_Col3=="" || $cellfex_forms_Col4=="" || $cellfex_forms_Col5=="" || $cellfex_forms_Col6=="" || $locatie=="" || $opmerking=="")
  12.  
  13. {
  14. print ("Alle velden zijn verplicht, ga terug en probeer het opnieuw");
  15. }
  16.  
  17. else {
  18.  
  19. // send email
  20. $headers = "From: ".$cellfex_forms_Col1." <".$cellfex_forms_Col5.">\r\n";
  21. $headers .= 'MIME-Version: 1.0' . "\r\n";
  22. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  23.  
  24. $subject = "Email";
  25. $message = "<strong>Naam:</strong> ".$cellfex_forms_Col1." <br />
  26. <strong>Adres:</strong> ".$cellfex_forms_Col2." <br />
  27. <strong>Postcode:</strong> ".$cellfex_forms_Col3." <br />
  28. <strong>Plaats:</strong> ".$cellfex_forms_Col4." <br />
  29. <strong>E-mail:</strong> ".$cellfex_forms_Col5." <br />
  30. <strong>Telefoon:</strong> ".$cellfex_forms_Col6." <br />
  31. <strong>Locatie:</strong> ".$locatie." <br />
  32. <strong>Opmerking:</strong><br />
  33. ".$opmerking."<br />
  34. ";
  35.  
  36. mail( $youremail, $subject, $message, $headers);
  37. print"Bedankt ".$cellfex_forms_Col1.", je aanvraag is verzonden.";
  38.  
  39. }
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement