when i am sending mail in my web application i am getting this erro.
I AM GETTING THIS ERROR. The element may only appear once in this section. (C:\Inetpub\vhosts\example.com\httpdocs\web.config line 64)
<system.net>
<mailSettings>
<smtp>
<network host="webmail.example.com" port="25" userName="info@example.com" password="asdf" defaultCredentials="false"/>
<network host="webmail.yyy.com" port="25" userName="info@yyy.com" password="asdf12" defaultCredentials="false"/>
</smtp>
</mailSettings>
</system.net>
It looks like you have duplicated an element in your web.config file. If you have added something to the config to enable or help your email, then you have likely added the same entry twice by accident, or duplicated an entry that was already there to change its value.
Perhaps something like: