redirect to mailapi from startpage