![]() |
|
Hotmail de hata - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3) +--- Forum: Genel Programlama (https://www.delphican.com/forumdisplay.php?fid=6) +--- Konu Başlığı: Hotmail de hata (/showthread.php?tid=6760) |
Hotmail de hata - barissagir - 07-05-2022 Merhaba arkadaşlar, Aşağıdaki kodla gmailden mail gönderebiliyorum. Ancak hotmailde hata veriyor. Hata kodu : Socket Error 10060. Nasıl çözebilirim yardımcı olabilir misiniz? ** Gmailde de aynı hatayı veriyordu 1- Güvenliği düşük uygulama erişimi ni AÇIK yaptım. 2- Google Hesabınıza erişim izni verme kısmında DEVAM a tıkladım sorun çözüldü. Hotmail içinde böyle bir ayar gerekiyor mu? procedure mailGonder(username, password, totarget, subject, body: string);
var
DATA: TIdMessage;
SMTP: TIdSMTP;
SSL: TIdSSLIOHandlerSocketOpenSSL;
Attachment: TIdAttachment;
begin
SMTP := TIdSMTP.Create(nil);
DATA := TIdMessage.Create(nil);
SSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
SSL.SSLOptions.Method := sslvTLSv1;
SSL.SSLOptions.SSLVersions := [sslvTLSv1];
SSL.SSLOptions.Mode := sslmUnassigned;
SSL.SSLOptions.VerifyMode := [];
SSL.SSLOptions.VerifyDepth := 0;
DATA.From.Address := username;
DATA.Recipients.EMailAddresses := totarget;
DATA.subject := subject;
DATA.body.text := body;
SMTP.IOHandler := SSL;
SMTP.Host :=trim(eMailF.SMTP.Text);// 'smtp.gmail.com';
SMTP.Port :=StrToInt(eMailF.Port.Text);// 587;
SMTP.username := username;
SMTP.password := password;
SMTP.UseTLS := utUseExplicitTLS;
SMTP.Connect;
SMTP.Send(DATA);
Showmessage('Mail Gönderildi');
SMTP.Disconnect;
Attachment.Free;
SMTP.Free;
DATA.Free;
SSL.Free;
eMailF.close;
end;
Hotmail de hata - mcuyan - 07-05-2022 İncelermisiniz: https://www.emailarchitect.net/easendmail/ex/d/6.aspx Cvp: Hotmail de hata - barissagir - 10-05-2022 (07-05-2022, Saat: 21:25)mcuyan Adlı Kullanıcıdan Alıntı: İncelermisiniz: bu componenti denemiştim trial versiyonunu sorunsuz çalışıyor ama ücretsiz olarak nasıl çözeriz. benim yazdığım kodlar gmail den sıkıntısız gönderiyor ama hotmail de göndermiyor. Hotmail de hata - barissagir - 10-05-2022 hotmail ayarları olarak smtp.live.com kullanıyordum SMTP.office365.com olarak değiştirince sorun çözüldü. |