def sid
      page = @agent.get(LANDING_PAGE_URL)
      login_form = page.forms[0]
      login_form.action= 'http://reg.163.com/login.jsp'
      login_form.add_field!('type',1)
      login_form.add_field!('product','mail163')
      login_form.add_field!('url' ,URI.encode("http://entry.mail.163.com/cgi/ntesdoor?hid=10010102&lightweight=1&language=0&style=3"))
      login_form.username ,login_form.password = @invitor_email_address,@invitor_email_password
      page = login_form.submit(login_form.buttons.first)
      page1 = login_form.click_button
      page2 = page1.links[0].click

      page3 = @agent.get('http://entry.mail.163.com/cgi/ntesdoor?verifycookie=1&lightweight=1&style=-1')
      page3.uri.to_s.scan(/sid=(\S+)/).first[0]
    end
def sid
      page = @agent.get(LANDING_PAGE_URL)
      login_form = page.forms[0]
      login_form.action= 'http://reg.163.com/login.jsp'
      login_form.add_field!('type',1)
      login_form.add_field!('product','mail163')
      login_form.add_field!('url' ,URI.encode("http://entry.mail.163.com/cgi/ntesdoor?hid=10010102&lightweight=1&language=0&style=3"))
      login_form.username ,login_form.password = @invitor_email_address,@invitor_email_password
      page = login_form.submit(login_form.buttons.first)
      page1 = login_form.click_button
      page2 = page1.links[0].click

      page3 = @agent.get('http://entry.mail.163.com/cgi/ntesdoor?verifycookie=1&lightweight=1&style=-1')
      page3.uri.to_s.scan(/sid=(\S+)/).first[0]
    end
登录
 @return [String] SID