1
I am trying to send emails (using my Hotmail account) and am encountering the error below:
A connection attempt failed because the connected component does not replied r ncorretamente after a period of time or connection established failed to nporque the connected host did not respond 65.55.176.126:25
The method I’m using is below:
public void sendEMailThroughHotMail()
{
try
{
//Mail Message
MailMessage mM = new MailMessage();
//Mail Address
mM.From = new MailAddress("[email protected]");
//receiver email id
mM.To.Add("[email protected]");
//subject of the email
mM.Subject = "your subject line will go here";
//add the body of the email
mM.Body = "Body of the email";
mM.IsBodyHtml = true;
//SMTP client
SmtpClient sC = new SmtpClient("smtp.live.com");
//port number for Hot mail
sC.Port = 25;
//credentials to login in to hotmail account
sC.Credentials = new NetworkCredential("[email protected]", "xxxxxx");
//enabled SSL
sC.EnableSsl = true;
//Send an email
sC.Send(mM);
}
catch (Exception ex)
{
throw ex;
}
}
I also tried sending via gmail, but Google interpreted my sending attempt as an attack attempt
Have you tried using door 465?
– Hiago Souza
@Hiagosouza tried it now, and the error presented is exactly the same: "An attempt at connection failed because the connected component did not respond to a match after a period of time or the established connection failed to host the connected host did not respond 65.55.163.152:465"
– Gleison França