email now sent outside of db transaction
broken effort to get headers right.