I just applied your lastest update, then did a new post. When i published the blog post, i received a function undefined error. The post did publish correctly, i see it there. But the email notifications did not go out. None there in the mail activities -- it is set to go on page load.