Notification and auto-reply emails not working right