Fixed the issue of rejection mail not being sent out.