SmtpClient timing out
I am trying to use my C# program to send an email using my own mail server as well as Gmail.
Whenever I try I keep getting a timeout and it doesn't matter if I change the timeout to 100 seconds or 1 second it still is timing out.
Anything obvious with my code?
3 Replies
Try port 587 maybe
Afaik 465 is no longer used for SMTP
changing it worked but only after I created a legacy App Password. Thanks
No problem!