fix no .cfg file

handle error if no smtpinfo.cfg file found.