code: function(err, data) {
  
              if(!err) {
  
                  if(method == AUTH_METHODS.CRAM_MD5) {
  
                      me.command(encode_cram_md5(SMTPResponse.parse(data).message), response, [235, 503]);
  
                  } else if(method == AUTH_METHODS.LOGIN) {
  
                      me.command((new Buffer(login.password)).toString("base64"), response, [235, 503]);
  
                  }
  
              } else {
  
                  me.loggedin = false;
                  fn({code:SMTPError.AUTHFAILED, message:"authorization failed", smtp:data});
  
              }
          }
docs: }}} {{{ attempt