Contact Us Mail Error

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/20/2009 10:46:50 AM
Gravatar
Total Posts 131

Contact Us Mail Error

Hey Joe,

Getting an error that I think may be a bug for a couple of reasons. 

1) I get it on 2 sites, and one is Mojo out of the box without customization

2) It used to work and stopped after the 2.3.1.0 release.

When I try to send an email from contact us, a empty string ("") is being sent to sendemailnormal in the "To" parameter.  From contact us, the associated parameter is "Settings["ContactFormEmailSetting"].ToString()" instead of txtemail.txt.

In my log, I get:

2009-07-20 11:40:01,245 ERROR mojoPortal.Web.ContactUI.ContactForm - System.ArgumentException: The parameter 'address' cannot be an empty string.
Parameter name: 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) in C:\Users\David\Documents\Visual Studio 2008\Projects\Dev.Yamisee.Com\mojoPortal\mojoPortal.Net\Email.cs:line 428
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) in C:\Users\David\Documents\Visual Studio 2008\Projects\Dev.Yamisee.Com\mojoPortal\mojoPortal.Net\Email.cs:line 363
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) in C:\Users\David\Documents\Visual Studio 2008\Projects\Dev.Yamisee.Com\mojoPortal\mojoPortal.Net\Email.cs:line 268
at mojoPortal.Web.ContactUI.ContactForm.btnSend_Click(Object sender, EventArgs e)
 

I don't have a setting for Settings["ContactFormEmailSetting"].ToString() so that may be it, but doesn't seem logical.

I turned of openmail and the issue is in both openmail and regular SMTP.

Is it a bug or am I missing something?

Thanks

 

7/20/2009 10:59:23 AM
Gravatar
Total Posts 18439

Re: Contact Us Mail Error

You need to set the address where to send contact form submissions. Click the gear icon next to the title of the contact form to get to the settings. Different instances of contact form can send to different addresses.

Hope it helps,

Joe 

7/20/2009 11:20:33 AM
Gravatar
Total Posts 131

Re: Contact Us Mail Error

Doh!

You must sign in to post in the forums. This thread is closed to new posts.