Fix issue with mail when no connection to Internet