Fixed mail function to properly specify "from"