facebook邮箱替换
/***TMGZS***/
if(TMUIDCountNow>TMUIDCount)
{
MsgAdd("邮箱使用完,停止!");
return 0;
}
MyMail=pListCtrl2->GetItemText(TMUIDCountNow-1,1);
MyMailPass=pListCtrl2->GetItemText(TMUIDCountNow-1,2);
SetFromINI("ud",MyMail);
//--邮箱部分结束
MsgAdd("添加邮箱:"+MyMail);
MyRes=FBAddMailM(MyID,MyMail,fb_dtsg,MyLFLogin.MyCookie);
if (MyRes.Find("c_user=deleted;")!=-1) //锁号
{
MsgAdd(MyID+"锁号");
SaveFile("锁号",MyOthe);
NoJ++;
ZhuangTaiStr.Format("%d",NoJ);
SetDlgItemText(pWnd->m_hWnd,IDC_STATICno, "失败:"+ZhuangTaiStr);
goto ZHAG;
}
if (MyRes.Find("c_user=")!=-1) //如果查找有这个,就直接完全替换
{
MyLFLogin.MyCookie=GetCookies(MyRes);
}
else if (MyRes.Find("datr=")!=-1)
{
//MyLFLogin.MyCookie+="; datr="+FindStr(MyRes,"datr=",";");
}
if (MyRes.Find("&error=")==-1) //邮箱添加成功
{
MsgAdd("等待获取邮箱数字code");
//发送邮箱账号密码
MyMailAllStr=MyMail+"----"+MyMailPass;
HWND MyH;
long MyHl;
CString MyHStr=GetFromINI("CW");
pWnd->SetDlgItemText(IDC_EDITTMP,MyHStr);
pWnd->GetDlgItemText(IDC_EDITTMP,MyHStr);
MyHl=atol(MyHStr);
MyH=(HWND)MyHl;
int MyGetMailNub=8; //收邮件次数
MailGAG:
if(IsWindow(MyH))
::SendMessage(MyH,WM_SETTEXT,0,(LPARAM)MyMailAllStr.GetBuffer(MyMailAllStr.GetLength()));
else //AfxMessageBox("不存在");
{
MsgAdd("POP初始化失败,停止");
return 0;
}
//***
//检测邮件是否获取到
SetFromINI("yzm","");
while (true)
{
Sleep(3000);
MyMailCode=GetFromINI("yzm");
pWnd->SetDlgItemText(IDC_EDITTMP,MyMailCode);
pWnd->GetDlgItemText(IDC_EDITTMP,MyMailCode);
if (MyMailCode.GetLength()>0)
{
break;
}
}
//**/
/**
MyMailCode=GetFromINI("yzm");
pWnd->SetDlgItemText(IDC_EDITTMP,MyMailCode);
pWnd->GetDlgItemText(IDC_EDITTMP,MyMailCode);
**/
if (MyMailCode.GetLength()<5 && MyMailCode!="0")
{
MsgAdd(MyMail+" 邮箱异常");
SaveFile("邮箱异常",MyMail+TMSPFlag+MyMailPass);
goto MailAG;
}
else if(MyMailCode=="0") //继续去获取
{
if (MyGetMailNub<1)
{
MsgAdd(MyMail+" 收不到,换邮箱");
SaveFile("邮箱收不到",MyMail+TMSPFlag+MyMailPass);
goto MailAG;
}
MyGetMailNub--;
goto MailGAG;
}
if (MyMailCode==MyMailCodeTmp) //还是上次的code,重新获取
{
MsgAdd(" 邮箱code相同...");
goto MailGAG;
}
MyMailCodeTmp=MyMailCode;
MsgAdd("code:"+MyMailCode);
MsgAdd(MyID+"正在激活中...");
MyRes=FBSendMailCodeM(MyMail,MyMailCode,fb_dtsg,MyLFLogin.MyCookie);
if (MyRes.Find("home.php?confirmed_account")!=-1) //激活成功
{
MsgAdd(MyID+"激活成功!!!");
}
本文含有隐藏内容,请 开通VIP 后查看