I can specify a port number with SmtpClient object in ASP.NET, what I am wondering is, is that just the port .NET uses to send mail to the SMTP server? Or will that dictate what port for the SMTP server to use? Or is it that it MUST match the port configured for the SMTP server?
Share
You are specifying the port number to connect to on the smtp server you are sending to. Not all SMTP servers run on standard ports so you need to be able to specify it and yes it must match the port that the smtp server is listening on.