The `email_action` function is looking for the post's status of `new`, but it should be `publish`.
The
email_actionfunction is looking for the post's status ofnew, but it should bepublish.