Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I check firewall and how can I make sure that the firewall is not blocked the port for sending mail?
Please give the detailed information about it. Thanks...
Posted
Updated 25-Jan-11 17:59pm
v2
Comments
Dave Kreskowiak 25-Jan-11 23:59pm    
Edit: Removed bold tags. It's just rude to bold everything in your post.
Sandeep Mewara 26-Jan-11 3:34am    
You are still on sending an email!

If you're talking about Windows Firewall or some firewall in a home router, then you need to start reading up on there[^] articles.
 
Share this answer
 
MailMessage message = new MailMessage("dk.mkcl@hotmail.com", "admin@yahoo.com", " Membership Confirmation email. pls do not reply ");
SmtpClient emailClient = new SmtpClient("xxx.xxx.xxx.xxx");
System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential("myserverhostloginid", "password");
emailClient.UseDefaultCredentials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.EnableSsl = true;
emailClient.Send(message);
 
Share this answer
 
v2
Comments
JF2015 26-Jan-11 0:37am    
Added code formatting.
jaheena wrote:
How can I check firewall and how can I make sure that the firewall is not blocked the port for sending mail

Disable the firewall and re-run your program and check if mails are going through it or not. If they do then it is the firewall issue.

It can be windows firewall or your antivirus firewall.

About port, if you are using your own exchange server then you need to make sure(by yourself or IT team) that the ports are open and allowed to send email with a given credentials.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900