config file :
<system.net>
<mailSettings>
<smtp from="[email protected]">
<network
host="mail.xxxxxx.com"
port="25"
password="password"
userName="[email protected]"
defaultCredentials="false"
/>
</smtp>
</mailSettings>
</system.net>
I've already tried defaultCredentials="true" but i recieved following message:
System.FormatException: Smtp server returned an invalid response.
how to fix the problem?