I have the following SMTP details stored in web.config
<system.net>
<mailSettings>
<smtp from="[email protected]">
<network host="mail.domain.com" port="25" userName="username" password="password" defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
How can I retrieve these values from within a c# class.