title: Sending email to users when post is published in wordpress
body: <p>I have a front end posting form where registered users can draft post. I have a meta field which contains email of the user who draft the content. Now when i publish the content from backend i want to send a email to user notifying that the post is published.</p>
  
  <p>Any kinds of direction to the research will help. </p>
  
  <p>Thanks!</p>