Unable to receive email notifications properly