Removed the sandbox option becasue popups were not closing when email was sent