Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label class="custom-select">
- <select name="department">
- <option>Technical Issues</option>
- <option>Charities</option>
- <option>General Inquiries</option>
- <option>Other</option>
- </select><span><!-- fake select handler --></span>
- </label>
- </div>
- <div class="column-100">
- <textarea name="message" placeholder="Type your message here..."></textarea>
- </div>
- <div class="column-100 center">
- <input type="submit" value="Send" data-error="Fix errors" data-processing="Sending..." data-success="Thank you!">
- </div>
- <footer class="notification-box"></footer>
- </form>
- </div>
- define('FROM_EMAIL', '');
- // Recipient's e-mail. To this e-mail messages will be sent.
- // e.g.: john@example.com
- // multiple recipients e.g.: john@example.com, andy@example.com
- define('TO_EMAIL', 'info@beetheswarm.com');
- /**
- * Function for sending messages. Checks input fields, prepares message and sends it.
- */
- function sendMessage() {
- // Variables init
- <label class="custom-select">
- <select name="department">
- <option value="technical@beetheswarm.com">Technical Issues</option>
- <option value="charities@beetheswarm.com">Charities</option>
- <option value="general@beetheswarm.com">General Inquiries</option>
- <option value="info@beetheswarm.com">Other</option>
- </select><span><!-- fake select handler --></span>
- </label>
- define('TO_EMAIL', $_POST['department']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement