H
hrp123
Unregistered / Unconfirmed
GUEST, unregistred user!
如题,代码如下:
IdMsgs.From.Text := szfity@126.com;
IdMsgs.Recipients.EMailAddresses := szfity@163.com;
IdMsgs.Subject := 'test 126';
IdMsgs.Body.Assign(Memo.Lines); //邮件正文,
//需验证的邮箱
IdSMTP.Host := 'pop.126.com';
IdSMTP.Port := 25;
IdSMTP.AuthenticationType := atLogin;
IdSMTP.UserName := szfity;
IdSMTP.PassWord := ******;
IdSMTP.Connect;
try
If IdSMTP.Authenticate then
try
IdSMTP.Send(IdMsgs);
showMessage('成功');
Except
showMessage('失败');
end;
Finally
IdSMTP.Disconnect;
end;
发送时总提示:[用户被锁定]不知何故? 但用163的邮箱要以发送成功.
用Gmail的邮箱发送也是失败.
IdMsgs.From.Text := szfity@126.com;
IdMsgs.Recipients.EMailAddresses := szfity@163.com;
IdMsgs.Subject := 'test 126';
IdMsgs.Body.Assign(Memo.Lines); //邮件正文,
//需验证的邮箱
IdSMTP.Host := 'pop.126.com';
IdSMTP.Port := 25;
IdSMTP.AuthenticationType := atLogin;
IdSMTP.UserName := szfity;
IdSMTP.PassWord := ******;
IdSMTP.Connect;
try
If IdSMTP.Authenticate then
try
IdSMTP.Send(IdMsgs);
showMessage('成功');
Except
showMessage('失败');
end;
Finally
IdSMTP.Disconnect;
end;
发送时总提示:[用户被锁定]不知何故? 但用163的邮箱要以发送成功.
用Gmail的邮箱发送也是失败.