WordPress.org

Ready to get started?Download WordPress

Forums

Events Made Easy
[resolved] Send out email when new event is created? (10 posts)

  1. kingcasper13
    Member
    Posted 11 months ago #

    Hello is it possible to send out a email to all users(from DB) when a new event is created? or 10 emails is define myself? something like that?

    http://wordpress.org/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 11 months ago #

    You can use the existing hooks for events here:
    http://www.e-dynamics.be/wordpress/?cat=41
    and code up any action you want.
    Some people even integrated EME with mailchimp via a RSS feed, and others created a hook that creates a post for each new event. Look for those in the forum at http://www.e-dynamics.be/bbpress

  3. Brian Shim
    Member
    Posted 4 months ago #

    Hey kingcasper13,

    Did you ever find a solution for this? I have the same requirement (to be able to send an email to a list when a new event is created).

    Thanks,
    Brian

  4. Franky
    Member
    Plugin Author

    Posted 4 months ago #

    Hi Brian,

    is the hook for eme_insert_event_action not enough? It gives you the event info and you can use any php mailing tool you like then.

  5. Brian Shim
    Member
    Posted 4 months ago #

    Hi Franky,

    Yes, that is awesome.. Just wondering if anyone had done the work already. If not, I can write my own - no problem.

    Thanks again for this great plugin!

    Brian

  6. nielsgiet
    Member
    Posted 1 month ago #

    Hi Brian,

    Can you write down your workflow? I want also send a mail to all users when a event is created.

    Thanks!
    Niels

  7. Brian Shim
    Member
    Posted 1 month ago #

    Hi Niels,

    Sorry, I ended up not implementing this.

    Thanks,
    Brian

  8. Franky
    Member
    Plugin Author

    Posted 1 month ago #

    Although I will not support it, I can help with a basic eme_insert_event_action example. Add this to your functions.php and change the $subject_format and $body_format to your liking, using the available event placeholders mentioned at http://www.e-dynamics.be/wordpress/?cat=25 ):

    add_action('eme_insert_event_action','eme_mail_event');
    function eme_mail_event ($event) {
       $contact_email = $contact->user_email;
       $contact_name = $contact->display_name;
       $subject_format="This is the new event called ' #_EVENTNAME '";
       $body_format="This is the new event called ' #_EVENTNAME '";
    
       $subject=eme_replace_placeholders($subject_format, $event, "text");
       $body=eme_replace_placeholders($body_format, $event, "text");
       $blogusers = get_users();
       foreach ( $blogusers as $user ) {
          eme_send_mail($subject,$body, $user->email, $user->display_name, $contact_email, $contact_name);
       }
    }
  9. nielsgiet
    Member
    Posted 1 month ago #

    Many thanks!
    I will play with it, hopefully I will get some useful stuff out of it:)

    Niels

  10. Franky
    Member
    Plugin Author

    Posted 4 weeks ago #

    Small correction, I added it as an example on the hooks and filters page:
    http://www.e-dynamics.be/wordpress/?cat=41

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.