Fire event first time future dated entry goes 'live' from 'pending' Is there a way I can run some code from a plugin when a future dated entry goes 'live' from 'pending'? I am trying to send an email update that a new entry has been posted. The related post below helped me with this, but it doesn't seem to cover future dated entries.

Here's what I have so far...

craft()-&gt;on('entries.onBeforeSaveEntry', function(Event $event) {
    $entry = $event-&gt;params['entry'];

    if ($entry-&gt;section-&gt;handle !== 'blog') {
        return;
    }
    if ($entry-&gt;status !== 'live') {
        return;
    }

    if (!$entry-&gt;getContent()-&gt;emailSent) {
        // send email
    }

    $entry-&gt;setContentFromPost(array('emailSent' =&gt; true));
});


Related to: Checking for first time an entry is &quot;published&quot; i.e. saved with a Live status

Thanks!
I've created a plugin called Published Event does exactly what Brad suggests in his answer. It fires off an event when a entry moves from pending to live.