Problems with emails not being submitted