some test on email notification
use IOError instead of FileNotFoundError for backward compatibility with Python 3.2