//}{Socks代理设置
SMTP.SocksInfo.Version:= svSocks5;
{socks常规设置}
SMTP.SocksInfo.Host:= Socks_host;
SMTP.SocksInfo.Port:= Socks_port;
SMTP.SocksInfo.Authentication:= saUsernamePassword;
SMTP.SocksInfo.UserID:= Socks_userid; //代理登陆名
SMTP.SocksInfo.Password:= Socks_passw;//代理登陆密码 //获取邮件服务器SMTP设置
{SMTP常规设置}
SMTP.Host := 'smtp.sina.com';
SMTP.Port := 25;
SMTP.AuthenticationType := atLogin;
SMTP.UserID := 'myAccount'; //邮箱账号
SMTP.Password := '********'; //邮箱密码 with IdMsgSend do
begin
//Body.Assign(Memo1.Lines);
Body.Text:= (RsEMailRecord.emailBody); //邮件正文
From.Text := UserEmail; //发件人地址
Recipients.EMailAddresses := E_mailAcceptRy.email; //收件人地址
Subject := RsEMailRecord.emailTitle; //邮件主题
end; {发送邮件信息}
try
if not SMTP.Connected then
SMTP.Connect; //出错行
try
SMTP.Send(IdMsgSend);
finally
if SMTP.Connected then
SMTP.Disconnect;
end;
except
//application.MessageBox('邮件地址不正确,或代理设置出错,或登陆名称与口令不正确。','错误',MB_OK + MB_ICONERROR);
continue;
end;??出错信息1: - Invalid socks authentication method ; 如何解决
??出错信息2: Connection Closed Gracefully 如何解决
??出错信息3: Socks server did not respond
SMTP.SocksInfo.Version:= svSocks5;
{socks常规设置}
SMTP.SocksInfo.Host:= Socks_host;
SMTP.SocksInfo.Port:= Socks_port;
SMTP.SocksInfo.Authentication:= saUsernamePassword;
SMTP.SocksInfo.UserID:= Socks_userid; //代理登陆名
SMTP.SocksInfo.Password:= Socks_passw;//代理登陆密码 //获取邮件服务器SMTP设置
{SMTP常规设置}
SMTP.Host := 'smtp.sina.com';
SMTP.Port := 25;
SMTP.AuthenticationType := atLogin;
SMTP.UserID := 'myAccount'; //邮箱账号
SMTP.Password := '********'; //邮箱密码 with IdMsgSend do
begin
//Body.Assign(Memo1.Lines);
Body.Text:= (RsEMailRecord.emailBody); //邮件正文
From.Text := UserEmail; //发件人地址
Recipients.EMailAddresses := E_mailAcceptRy.email; //收件人地址
Subject := RsEMailRecord.emailTitle; //邮件主题
end; {发送邮件信息}
try
if not SMTP.Connected then
SMTP.Connect; //出错行
try
SMTP.Send(IdMsgSend);
finally
if SMTP.Connected then
SMTP.Disconnect;
end;
except
//application.MessageBox('邮件地址不正确,或代理设置出错,或登陆名称与口令不正确。','错误',MB_OK + MB_ICONERROR);
continue;
end;??出错信息1: - Invalid socks authentication method ; 如何解决
??出错信息2: Connection Closed Gracefully 如何解决
??出错信息3: Socks server did not respond
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货