I have a window application and i have used the Email Functionality in that and in that the Email settings are in the app.config file.and its like below
<system.net>
<mailSettings>
<smtp from="email@gmail.com">
<network host="smtp.gmail.com" port="587" userName="username" password="password" enableSsl="true" />
</smtp>
</mailSettings>
</system.net>
i want to change using the coding of above section..i have to change through coding in smtp and network section in config file.