Hi,
try to put in the smtp section into your web.config like the following sample:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="testuser@domail.com">
<network defaultCredentials="true" host="localhost" port="25" userName="kaushal" password="testPassword"/>
</smtp>
</mailSettings>
</system.net>
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.