Broken Contact Form ?

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.
5/12/2009 9:21:29 PM
Gravatar
Total Posts 101

Broken Contact Form ?

Hi,

The latest version of Mojoportal appears to have a problem with Contact Forms.

I have changed skins to make sure its not Skin related, double checked the Web.config for SMTP settings.

When submitting you still receivea message saying:      'Thank You! Your message has been sent.'

BUT the message never arrives, and the following is displayed in the Log screen.

2009-05-13 12:09:58,227 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)
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)

Currently running on the following configuration.

WebServer 2008 Std
Database SQLServer Express 2008
MojoPortal Version 2.3.0.1 MSSQL

Regards
Andrew

5/13/2009 5:27:58 AM
Gravatar
Total Posts 18439

Re: Broken Contact Form ?

Hi Andrew,

Its working correctly. Messages are received and can be viewed using the "View Messages" link.

Tthe message is received and therefore the user sees a confirmation message. There is no need to show an error message just because you have not configured it to send to an email address. Messages are not lost.

The forwarding of the messages to an email address is optional. Click the gear icon next to the title of the contact form and set the email address to receive it in the settngs. And make sure smtp is configured correctly. Then it will forward the messages as they come in. It won't resend messages already received though.

Hope it helps,

Joe

5/13/2009 5:55:58 AM
Gravatar
Total Posts 101

Re: Broken Contact Form ?

Thanks Joe.

Solved.

I checked my Web.config multiple times and couldn't understand why the email server didn't receive any mail. (ie. Server/user/pass etc all ok).

Totally didn't even think about the properties for the contact form.

I was thinking config files, not the form/database etc..

Thanks again..

Problem solved.

Regards

Andrew

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