Advertisement
Guest User

Untitled

a guest
Aug 25th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <label class="custom-select">
  2. <select name="department">
  3. <option>Technical Issues</option>
  4. <option>Charities</option>
  5. <option>General Inquiries</option>
  6. <option>Other</option>
  7. </select><span><!-- fake select handler --></span>
  8. </label>
  9. </div>
  10. <div class="column-100">
  11.  
  12. <textarea name="message" placeholder="Type your message here..."></textarea>
  13.  
  14. </div>
  15. <div class="column-100 center">
  16. <input type="submit" value="Send" data-error="Fix errors" data-processing="Sending..." data-success="Thank you!">
  17. </div>
  18. <footer class="notification-box"></footer>
  19. </form>
  20.  
  21. </div>
  22.  
  23. define('FROM_EMAIL', '');
  24.  
  25. // Recipient's e-mail. To this e-mail messages will be sent.
  26. // e.g.: john@example.com
  27. // multiple recipients e.g.: john@example.com, andy@example.com
  28. define('TO_EMAIL', 'info@beetheswarm.com');
  29.  
  30. /**
  31. * Function for sending messages. Checks input fields, prepares message and sends it.
  32. */
  33. function sendMessage() {
  34. // Variables init
  35.  
  36. <label class="custom-select">
  37. <select name="department">
  38. <option value="technical@beetheswarm.com">Technical Issues</option>
  39. <option value="charities@beetheswarm.com">Charities</option>
  40. <option value="general@beetheswarm.com">General Inquiries</option>
  41. <option value="info@beetheswarm.com">Other</option>
  42. </select><span><!-- fake select handler --></span>
  43. </label>
  44.  
  45. define('TO_EMAIL', $_POST['department']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement