Hmmm...
Here is what the contactconfiguration looks like using the Telerik code converterL
http://converter.telerik.com
public class AlightenContactConfiguration : ConfigurationSection
{
[ConfigurationProperty("serverAddress", IsRequired = true, IsKey = true)]
public string ServerAddress {
get { return (string)this("serverAddress"); }
set { this("serverAddress") = value; }
}
[ConfigurationProperty("serverPort", IsRequired = true, IsKey = true)]
public string ServerPort {
get { return (string)this("serverPort"); }
set { this("serverPort") = value; }
}
[ConfigurationProperty("serverSpecifyPort", IsRequired = true, IsKey = true)]
public string ServerSpecifyPort {
get { return (string)this("serverSpecifyPort"); }
set { this("serverSpecifyPort") = value; }
}
[ConfigurationProperty("serverAuthenticate", IsRequired = true, IsKey = true)]
public string ServerAuthenticate {
get { return (string)this("serverAuthenticate"); }
set { this("serverAuthenticate") = value; }
}
[ConfigurationProperty("clientTemplate", IsRequired = true)]
public string ClientTemplate {
get { return (string)this("clientTemplate"); }
set { this("clientTemplate") = value; }
}
[ConfigurationProperty("employeeTemplate", IsRequired = true)]
public string EmployeeTemplate {
get { return (string)this("employeeTemplate"); }
set { this("employeeTemplate") = value; }
}
[ConfigurationProperty("baseURL", IsRequired = true)]
public string BaseURL {
get { return (string)this("baseURL"); }
set { this("baseURL") = value; }
}
[ConfigurationProperty("from", IsRequired = true)]
public string From {
get { return (string)this("from"); }
set { this("from") = value; }
}
[ConfigurationProperty("username", IsRequired = true)]
public string Username {
get { return (string)this("username"); }
set { this("username") = value; }
}
[ConfigurationProperty("password", IsRequired = true)]
public string Password {
get { return (string)this("password"); }
set { this("password") = value; }
}
[ConfigurationProperty("employeeRecipients", IsRequired = true)]
public string EmployeeRecipients {
get { return (string)this("employeeRecipients"); }
set { this("employeeRecipients") = value; }
}
[ConfigurationProperty("clientSubject", IsRequired = true)]
public string ClientSubject {
get { return (string)this("clientSubject"); }
set { this("clientSubject") = value; }
}
[ConfigurationProperty("employeeSubject", IsRequired = true)]
public string EmployeeSubject {
get { return (string)this("employeeSubject"); }
set { this("employeeSubject") = value; }
}
}
//=======================================================
//Service provided by Telerik (www.telerik.com)
//Conversion powered by NRefactory.
//Built and maintained by Todd Anglin and Telerik
//=======================================================
However, I suspect that there is something missing from the web.config. In the config sections you should have
| <sectionGroup name="Alighten"> |
| <section name="AlightenContactConfiguration" type="AlightenContactConfiguration"></section> |
| </sectionGroup> |
And then in the Alighten section:
| <Alighten> |
| <AlightenContactConfiguration |
| serverAddress="mail.alighten.com" |
| serverPort="25" |
| serverSpecifyPort="false" |
| serverAuthenticate="true" |
| clientTemplate="~/Files/templates/contactClientTemplate.html" |
| employeeTemplate="~/Files/templates/contactEmployeeTemplate.html" |
| baseURL="" from="Ben Nye<bnye@alighten.com>" |
| employeeRecipients="Ben Nye<info@alighten.com>;Ben Nye<bnye@alighten.com>" |
| username="bnye@alighten.com" |
| password="yourpassword" |
| clientSubject="Alighten | Request received {1}" |
| employeeSubject="Alighten | New request from {1}" |
| /> |
| </Alighten> |
I hope this helps. Please do not hesitat to contact me if you have any questions.
Sincerely,
Ben