How can we help?

I want to connect to my SMTP server on a different port than 25. How can I achieve it?


You should use the HostPort property. HostPort is set to 25 by default. Assign a different value to connect to a different port.

NOTE: You should set ‘HostPort’ BEFORE you calling the Connect method.