<
configuration
>
<
system.net
>
<
mailSettings
>
<
network
host
=
"mail.xxxxxx.com"
port
=
"25"
password
=
"password"
userName
=
"[email protected]"
defaultCredentials
=
"false"
/>
</
smtp
>
</
mailSettings
>
</
system.net
>
<
configuration
>
Note: Must set defaultCredentials to false, in order to use smtp authentication.
If the UseDefaultCredentials property is set to false, then the value set in the Credentials property will be used for the credentials when connecting to the server. If the UseDefaultCredentials property is set to false and the Credentials property has not been set, then mail is sent to the server anonymously.
Article ID: 380, Created: April 8, 2013 at 7:11 PM, Modified: April 8, 2013 at 7:11 PM