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?
Set the deliveryMethod property on the smtp element to 'network'.
sorry, had the web.config from the Views folder in ASP.NET MVC open, not the one in the application root - DOH!!!!!
Working fine now :))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With