Email sender fixed. Mail settings added to config file.