How can we help?

How can I connect to my SMTP server on a different port than 25?


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.