mail host should be taken from environment variable and not be hard-coded.