Title: Trigger email from Frontend
Last modified: September 27, 2016

---

# Trigger email from Frontend

 *  [pachterb](https://wordpress.org/support/users/pachterb/)
 * (@pachterb)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/trigger-email-from-frontend/)
 * Is it possible to build a sidebar widget to trigger ’email users’ of a post being
   displayed on the frontend? Any example code would help!
 * Thanks,
    Patrick…

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/trigger-email-from-frontend/#post-8227348)
 * I am not sure I understand your question. Are you asking if there is a widget
   you can add that a use that when a user clicks on it, it sends them the notification
   email? Or are you looking at some other action?
 * In either case, I don’t know of an easy way to anything on the front end which
   would cause an action for Email Users on the back end.
 *  Thread Starter [pachterb](https://wordpress.org/support/users/pachterb/)
 * (@pachterb)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/trigger-email-from-frontend/#post-8228073)
 * With a post displayed on the frontend I need a button (shortcode) that would 
   send a group email of the post. This would be the simple solution for my need.
   A more useful or robust solution might be a sidebar widget that would allow selection(
   dropdown) of the individual or group to direct the email of the post.
 * Formatting of the email would be predefined in the backend.
 * Thanks,
    Patrick…
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/trigger-email-from-frontend/#post-8228233)
 * Would a user need to be logged in to see the button (more likely a short code
   link)? How would you envision selecting the group of users? It might help me 
   understand if you can explain how you would use this. Exposing this on the front
   end seems risky.
 *  Thread Starter [pachterb](https://wordpress.org/support/users/pachterb/)
 * (@pachterb)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/trigger-email-from-frontend/#post-8228322)
 * Yes, user would be logged in and the button/widget would be available to a specific
   role assigned to a moderator or administrator. In the case of a button the [shortcode
   role=’moderator’] would define the to: group. A widget might have a dropdown.
   In either case a send verification would be helpful. (are you sure you want to
   send this email?)
 * I am trying to provide a site that is frontend only to the membership and leadership.
   Trying to simplify the user and leadership experience. The primary function of
   the site is to build a “mission” request, publish it to a calendar, and send 
   it in a email blast to the membership. This is currently working, but requires
   the email to be sent from the backend using “Email Users”. And it work great!
   I am looking for a tweak to trigger the email from the frontend.
 * Thank you Mike for listening to my request. You have built a great plugin!
    Patrick…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Trigger email from Frontend’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [pachterb](https://wordpress.org/support/users/pachterb/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/trigger-email-from-frontend/#post-8228322)
 * Status: not resolved