implement email notification for post