updates to make mail work on the live site