The connection to server depends on the server and so are the ports. Aspose.Email provides different modes using the SecurityOptions for connecting to server using SSL or TLS. If the server doesn’t allow these, the API won’t be able to fulfill your requirements. Please contact your system administrator or email service provider for further guidance in this regard.