E-mail address is too long

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anos atrás
Getting 'E-mail address is too long' error

Tracked it to CustomerManager.cs  

if (newEmail.Length > 40)
                {
                    throw new NopException("E-mail address is too long.");
                }

i think you need to increase the limit of 40, it's not good in the real world.

This is in 1.7 by the way :)
13 anos atrás
Thanks for suggestion.
13 anos atrás
I had also noted this an issue but in regards to CustomerInfo control

The text box is set to a max length of 50

<asp:TextBox ID="txtEmail" runat="server" MaxLength="50"  Width="300px"></asp:TextBox>

A better value might be 100, or more, though the database has the column attributes set to nvarchar(255)

There are other instances where the input MaxLength does not match the db or rather a reasonable value

Version 1.90

Murray
13 anos atrás
255 at least. Storage space is cheap, losing customers because their email address is rejected is expensive.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.