Verify Valid Email address of user?

webzight 28 Feb, 2017
Bob,

In testing a Contact form I noticed that I typed in an invalid email address (misspelled) by accident, the form accepted same and posted the Display Message along with a "failure to instantiate email" error!
Is there a way to make sure the user inputs a valid email address BEFORE seeing the Display Message and forces the user to input same before the process completes!
I looked through the tutorials but I am not sure I am seeing what I am looking for ;-)

Thanks,
Tommy
GreyHead 28 Feb, 2017
Hi Tommy,

What exactly do you mean by a 'valid email address'? The normal email validation will check that the address looks correct but it can't check for typos unless they make the address incorrect e.g. john@@smith.com or john@smithcom

Bob
webzight 28 Feb, 2017
Thanks Bob for the quick reply!

As I stated I MISSPELLED the User Email Address and attempted to send same!
After sending I got the Display Message as if everything was OK, but at the same time I got this ERROR Msg at the top of the display message: Mailer Error: Could not instantiate mail function.
Is there way to make sure the User Email address is correct BEFORE seeing the Display Message and return the User to the form to check the Email address other than making them enter the Email address twice which is annoying to most users or so I have been told😉
Otherwise I guess I'll have to manually change the Error Message to suggest the user check Email address for correct spelling :-)
GreyHead 28 Feb, 2017
Hi Tommy,

Please see my previous reply - how would you know that an email address was mis-spelled? I can't imagine any way to check that.

If you are getting the Failed to instantiate message I'm guessing that you may be using the Dynamic From box in the Email action. . . . I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

Bob
webzight 28 Feb, 2017
Not using the Dynamic Form in anyway and I got the Error Message above by entering a "misspelled address" as I and I am NOT wanting to check for proper spelling, but if I getting the Error (Mailer Error: Could not instantiate mail function) because of an erroneous or NON EXISTING email address, there should be a way to set a flag to redirect the user to CHECK the email address entered I would think!
webzight 28 Feb, 2017
BTW where would that ERROR MSG (Mailer Error: Could not instantiate mail function) be stored on the server?
Is that a Joomla! System Error or one ChronoForms generates ?
I'm looking in languages but I don't see anything for ChronoForms ?
GreyHead 28 Feb, 2017
Hi Tommy,

I believe that is a Joomla! message - I assume that you are using the Joomla! mailer? that is - you haven't added any custom mailer settings in the ChronoForms Forms Manager Settings.

There are email checks in both the Client-side and Server-side validation settings if you enable them. But they will not check for a correctly-formed email with a typo in the name or domain.

If you need it then you can add Custom Serverside validation to run an MX check on the email to see if it is deliverable.

That said - I would not expect you to get an Unable to Instantiate error trying to send an email to a correctly formed address, I would expect the email to be sent and afterwards you might get a delivery failure message.

Bob
This topic is locked and no more replies can be posted.