Guest User

Untitled

a guest
Aug 25th, 2015
121
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. // multiple recipients e.g.: [email protected], [email protected]
  27. define('TO_EMAIL', '[email protected]');
  28.  
  29. /**
  30. * Function for sending messages. Checks input fields, prepares message and sends it.
  31. */
  32. function sendMessage() {
  33. // Variables init
  34.  
  35. <label class="custom-select">
  36. <select name="department">
  37. <option value="[email protected]">Technical Issues</option>
  38. <option value="[email protected]">Charities</option>
  39. <option value="[email protected]">General Inquiries</option>
  40. <option value="[email protected]">Other</option>
  41. </select><span><!-- fake select handler --></span>
  42. </label>
  43.  
  44. define('TO_EMAIL', $_POST['department']);
Advertisement
Add Comment
Please, Sign In to add comment