invalid email address

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/23/2018 2:48:38 PM
Gravatar
Total Posts 4

invalid email address

Hi there,

I am just in the process of setting up MojoPortal for a small project website, but cannot enter any members that have an email address from "ucit.university".

Like "JohnDoe@Ucit.University" - it always gets rejected as invalid email address although both domain and recipient are real and able to send and receive emails.

 

Is there a static whitelist behind this mechanism that I can alter to include the desired email domains?

 

Cheers & thanks for providing such a promising gem!

Dan

1/25/2018 9:29:21 AM
Gravatar
Total Posts 2253

Re: invalid email address

Hi,

You can add the following to your user.config file. After changing the user.config, you will have to "touch" the web.config to get IIS to reload both files.

By default, the 10 at the end of the value string is a 9. Increasing it to 10 should allow for TLDs of up to 10 characters. I caution you on increasing it more than you really need to because it can lead to performance issues.

<add key="CustomEmailRegex" value="^([0-9a-zA-Z](['-.\w]*[_0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w']*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,10})$" />

Thank you,
Joe

1/25/2018 10:00:47 AM
Gravatar
Total Posts 4

Re: invalid email address

Solution confirmed, thanks for the quick response!

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