When user posts comment at my contact us page I get the following log (I can see the post ok at the site's "see messages" frame when logged in as admin, but never receive them by e-mail)
The error message isn't useful, since it doesn't tell me which exact string has the problem (it has to do with SMTP settings in my user.config obviously)
---
<add key="DisableDotNetOpenMail" value="false" /> <!-- also tried with this set to true -->
<add key="SMTPServer" value="..." />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="..." /> <!-- tried both user and user@server here -->
<add key="SMTPPassword" value="..." />
<add key="SMTPTimeoutInMilliseconds" value="30000" />
<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="utf-8" />
*** could it be the "utf-8" smtp encoding setting the problem there? (user.config file is saved in utf-8 format, checked just in case)
---------
2009-11-25 00:34:01,989 ERROR mojoPortal.Web.ContactUI.ContactForm - System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
at System.Net.Mail.MailAddress.ParseValue(String address)
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
at System.Net.Mail.MailAddress..ctor(String address)
at mojoPortal.Net.Email.SendEmailNormal(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)
at mojoPortal.Net.Email.SendEmailNormal(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority)
at mojoPortal.Net.Email.SendEmail(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority)
at mojoPortal.Web.ContactUI.ContactForm.btnSend_Click(Object sender, EventArgs e)
2009-11-25 00:35:17,902 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2009-11-25 00:35:29,225 INFO mojoPortal.Web.Global - Application Started.