Got the email stuff working nicely finally.