Sunday, August 5, 2012

How to Configuring Smtp Mail Settings in theWeb.Config or App.Config

Most of the common configuration settings can be set using we3bsite administration tool.we can invoke using
website-->Asp.net configuration
The tool is mandatory for some configuration tasks for remaining we can set them manually ass well as with tool.SMTP settings can also be given using configuration tool
Mail settings:
<configuration>
<systerm.net>
<mailsettings>
<smtp from="info@site.com">
<Network host="smtp.gmail.com" password="sec" port="587" user name="sc"/>
</smtp>
</mailsettings>
</system.net>
</configuration>

All above mail settings need not be written again in programs.The above settings starting from app settings still mail settings are part of application related configuration settings.We can even specify security related information with in the configuration file.Which is also called asp.net application security configuration

No comments:

Bel