Represents the SMTP configuration on the configuration file
Inheritance: ISerializedConfig
		private SmtpConfig DeserializeSmtpConfigFromXml(string configXml)
		{
			var doc = new XmlDocument();
			doc.LoadXml(configXml);
			var config = new SmtpConfig();
			config.Deserialize(doc.DocumentElement);
			return config;
		}
		public void ConfigureFromConfigFile_ShouldParseConfig()
		{
			SmtpConfig config = new SmtpConfig();

			config.ConfigureFromWebConfigFile();

			Assert.AreEqual("John Doe", config.Username);
			Assert.AreEqual("secretp@ss", config.Password);
			Assert.AreEqual(1234, config.Port);
			Assert.AreEqual("localhost", config.Host);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="MonoRailConfiguration"/> class.
		/// </summary>
		public MonoRailConfiguration()
		{
			smtpConfig = new SmtpConfig();
			viewEngineConfig = new ViewEngineConfig();
			controllersConfig = new ControllersConfig();
			viewComponentsConfig = new ViewComponentsConfig();
			scaffoldConfig = new ScaffoldConfig();
			urlConfig = new UrlConfig();
			routingRules = new RoutingRuleCollection();
			extensions = new ExtensionEntryCollection();
			defaultUrls = new DefaultUrlCollection();
			jsGeneratorConfig = new JSGeneratorConfiguration();

			jsGeneratorConfig.AddLibrary("prototype-1.5.1", typeof(PrototypeGenerator))
				.AddExtension(typeof(CommonJSExtension))
				.AddExtension(typeof(ScriptaculousExtension))
				.AddExtension(typeof(BehaviourExtension))
				.BrowserValidatorIs(typeof(PrototypeWebValidator))
				.SetAsDefault();

			// old routing support related
			matchHostNameAndPath = false;
			excludeAppPath = false;
		}