non useful log about wrong e-mail address format

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.
11/28/2009 11:08:41 AM
Gravatar
Total Posts 18439

Re: non useful log about wrong e-mail address format

I will add a catch for format exception to show the addresses in the error.

11/28/2009 11:12:34 AM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: non useful log about wrong e-mail address format

also tried with utf-8, latin1, iso-8859-1 for the encoding setting

11/28/2009 11:14:56 AM
Gravatar
Total Posts 18439

Re: non useful log about wrong e-mail address format

As I said the error message is about the address. There are only a to and a from please verify they are both valid email addresses.

11/28/2009 11:19:11 AM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: non useful log about wrong e-mail address format

I have the site e-mail address (at 1st page) set ok (that's the from I guess). The SMTP user is set too (tried it both as user and user@server). Also of course the form filled (by me) has the person's email address set. Is there other e-mail too to set somewhere?

11/28/2009 11:22:38 AM
Gravatar
Total Posts 18439

Re: non useful log about wrong e-mail address format

I already asked you:

Have you populated the default email from address in site settings? It should usually use the same email address as the smtp account.

Have you populated the address to send the contact form submission to in the settings of the contact form with a valid email address?

So it sounds like you did not set the one in the contact form settings. Click the settings link next to the title of the form. This is who to send the form to.

11/28/2009 11:27:14 AM
Gravatar
Total Posts 18439

Re: non useful log about wrong e-mail address format

If that does not solve it let me know and I will create a build for you with better logging.

Best,

Joe

11/28/2009 11:30:31 AM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: non useful log about wrong e-mail address format

tried with empty encoding too, no luck

btw, I don't think you need to add special support for utf-8 if you use .NET classes to send e-mail (the doc link you posted says .NET will use BASE64 or whatever encoding needed if you say the mail is in Unicode [UTF-16] or UTF-8 or UTF-32).

Just make sure you don't parse manually that encoding string, but use .NET's classes to get an Encoding instance out of an encoding name (let me know if you can't spot the way to do that, had done it at LvS project [http://www.codeplex.com/LvS] but don't remember at the moment if it was totally straightforward like using a constructor or there was some factory method elsewhere)

As for mail headers, they use their own encoding scheme that contains the encoding at the start of say the from, to etc. fields in something like ?encoding? (if I remember well) with the encoded data following - .NET should be taking care for it (checkout PHP's mb_encoding_mime_header for examples [e.g. see discussions at end of page])

11/28/2009 11:31:37 AM
Gravatar
Total Posts 18439

Re: non useful log about wrong e-mail address format

The reason it always does not use DotNetOpenMail for the contact form is that we are passing the user's email address as a ReplyTo address and replyto is not supported by DotNetOpenMail.

11/28/2009 11:35:35 AM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: non useful log about wrong e-mail address format

Aha!

Was using "myself@somewhere.com;someother@somewhereelse.com" there and it was choking on it (should it? does it expect "," there to send to many people or doesn't it support sending to many people at all? - I think you should make a splitter that works with both "," and ";" and makes an array of mail addresses to feed to .NET if it doesn't support it directly)

Thanks for looking into the better logging too, would have helped if I could see that string since I'd go and search for where else it may have been defined in the GUI (had set it when I first set up the contact form and didn't remember about it being there to guess that was the issue)

11/28/2009 11:37:18 AM
Gravatar
Total Posts 18439

Re: non useful log about wrong e-mail address format

The reason I said I need to add it is that the current code is not specifying it at all. Previously we were using encoding only for DotNetOpenMail but it is a different kind of thing like you would use koi8-r for Russian whereas the .NET ones use either ascii utf8 utf32 or unicode. But currently it is not specified at all so it is always using ascii at the moment.

If you verified that you have valid email addresses both in the to and from and you think the body and subject encoding has any effect on it I can make a build that will use utf-8 utf-32 or unicode and you can see if that solves it but, I do not think it is an encoding issue.

Best,

Joe

11/28/2009 11:38:10 AM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: non useful log about wrong e-mail address format

support for non-latin e-mail bodies is too needed if it doesn't exist already

also from what I understand you can define the mail template at email.config or something? Why not define/edit visually a template (and maybe have dropdown to choose from some ready made ones and add yours there too [with option to be portal global maybe if user is admin]) at the contact form settings and/or at site e-mail settings?

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