I have three problems in C# WinForm application sending email.
1) For sending email, I have to choose the host and port number at runtime e.g. smtp.mail.yahoo.com and port number 465 or smtp.google.com and port number 587. What's the best way to accomplish this?
2) When testing this my antivirus (quick heal) installed on my PC is blocking my application and saying that is not trusted email client. How can I include my application in antivirus / windows trusted email client list programmatically?
3) Is it required that we should use default port 25 or any other port like 465 or 587?