im trying to send an email with hotmail sever using delphi
using this code :
SMTP.Username := 'MYEMAIL@hotmail.com';
SMTP.Password := 'PASSWORD';
SMTP.Host := 'smtp.live.com';
SMTP.Port := 25;
SMTP.IOHandler := SSLHandler;
SSLHandler.SSLOptions.Method := sslvTLSV1;
SMTP.UseTLS := utUseImplicitTLS;
SMTP.Connect;
but every time i try to send i get this error: "Socket Error #10060, Connection timed out."
but when i try to send email with google it works fine
SMTP.Username := 'MYEMAIL@hotmail.com';
SMTP.Password := 'PASSWORD';
SMTP.Host := 'smtp.gmail.com';
SMTP.Port := 465;
SMTP.IOHandler := SSLHandler;
SSLHandler.SSLOptions.Method := sslvTLSV1;
SMTP.UseTLS := utUseImplicitTLS;
SMTP.Connect;
any idea why??