Well, when I send a mail I use
localhost
instead of any specific IP address and I don't specify a user name or password. I'm not sure if the name and password matter since your using
DefaultCredetials
though.
But also looking at msdn you may need adjust your web.config so that the actuall settings are in an smpt node:
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="network">
<network
host="localhost"
port="25"
defaultCredentials="true"
/>
</smtp>
</mailSettings>
</system.net>
</configuration>
http://msdn.microsoft.com/en-us/library/w355a94k.asp[
^]
If you want to actually send your email through Gmail then I believe you can specify smpt.gmail.com as the server (the port should stay on 25) but you'd then need to give your gmail username and password and not use
DefaultCredentials