Fixed hasattr error
Changd subject of notif email to post subject