Fórum Enviando emails #177552
26/08/2003
0
estou tentando enviar emails com o componente IdSMTP da paleta Indy do delphi 7.
DMException.IdSMTP.Username := ´rafael´;
DMException.IdSMTP.Password := ´12345´;
DMException.IdSMTP.Host := ´smtp.mail.yahoo.com.br´;
DMException.IdSMTP.Port := 25;
DMException.IdSMTP.AuthenticationType := atNone;
DMException.IdSMTP.Connect;
Está ocorrendo o seguinte erro no DMException.IdSMTP.Connect: ´Socket Error # 10060 Connection timed out.´
Importante: a conexão intenet na máquina que estou trabalhando é via proxy.
Alguem já passou por isso ?
Rafael Helm.
Rafaelhelm
Curtir tópico
+ 0Posts
29/06/2005
Alansvieceli
tava dando o mesmo erro pra mim....fazendo isso deu certo..
abraço
Gostei + 0
29/06/2005
Steve_narancic
DMException.IdSMTP.AuthenticationType := atNone;
por
DMException.IdSMTP.AuthenticationType := atLogin;
Gostei + 0
11/08/2014
Samuel Basso
SMTP.AuthType := satDefault;
SMTP.Authenticate;
SMTP.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
SMTP.UseTLS := utUseImplicitTLS;
IdSSLIOHandlerSocketOpenSSL1.DefaultPort := 465;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvSSLv3;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode := sslmClient;
SMTP.Username := 'Email@yahoo.com.br';
SMTP.Password := 'senha';
SMTP.Host := 'smtp.mail.yahoo.com.br';
SMTP.Port := 465;
SMTP.UseEhlo := True;
SMTP.UseVerp := True;
SMTP.ReadTimeout := 10000;
with IdMsgSend do begin
From.Text := 'para';
From.Address := 'para';
CharSet := 'UTF-8';
ExtraHeaders.Clear;
end;
SMTP.Authenticate;
SMTP.Connect;
try
SMTP.Send(IdMsgSend);
finally
if SMTP.Connected then begin
Sleep(6000);
Application.ProcessMessages;
SMTP.Disconnect;
end;
end;
Testei as informções de [Steve Narancic] e [Alansvieceli] e nada ...
Algúem tem alguma outra opção...
Gostei + 0
11/08/2014
Steve Narancic
Gostei + 0
11/08/2014
Steve Narancic
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)