Contact Form 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.
1/7/2010 8:33:13 AM
Gravatar
Total Posts 12

Contact Form Error

Hi Joe,

Windows Server 2003
SQL Server 2005
Mojo 2317/2332

 

Getting the following error when using contact form to send mail.

2010-01-07 14:19:51,910 ERROR mojoPortal.Web.ContactUI.ContactForm - error sending email from address was to address was myemail@mydomain.uk
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)

myemail@mydomain.uk changed from my real address.

 

I've copied the smtp settings in web.config from a previous version of Mojo (contact form works fine) and have double checked that they are correct.

Also, there is a valid address in the email field fro the contact form settings.

 

Am I missing something obvious?

 

Regards

Colin

1/7/2010 8:37:27 AM
Gravatar
Total Posts 12

Re: Contact Form Error

Also.....the registration confirmation email has a blank recipient. Is there a setting in the config that we can use?

1/7/2010 8:37:37 AM
Gravatar
Total Posts 18439

Re: Contact Form Error

Hi Colin,

Go to Administration > Site Settings and configure a correct site default from address, ie make it the same as the email you cofigured to send from in smtp settings.

Hope it helps,

Joe

1/7/2010 8:39:21 AM
Gravatar
Total Posts 12

Re: Contact Form Error

Apologies, just found the 'reply to' address in site settings!! ;(

 

As you were!

1/7/2010 8:39:51 AM
Gravatar
Total Posts 12

Re: Contact Form Error

Cheers Joe.

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