get basic email delivery working