Home > Getting Started > Web.config > Configuration/system.net > port
port
If your email server does not accept SMTP email on the standard port 25, include this setting to indicate the correct port.
Usage
If not port 25, set “port” to the correct port of your SMTP email server.
Example
To set your email server's port, you would change the highlighted value below
<mailSettings>
<smtp>
<network host="yoursmtpserver" userName="username" password="secret" port="25"/>
</smtp>
</mailSettings>
See also
|