chris-josongmail-com | Posts: 30

Email validation using ESL SDK to prevent runtime error in package creation

0 votes
Is there a way to use Silanis SDK to validate the signer's email address prior to actually creating the package? The email validation of the SDK during package creation seems stricter than usual email RegEx validations, and recognizes only a set of valid top-level domains. Would be good if we can leverage same email validation during data collection from user inputs. Otherwise, we bump into similar exception like the one below later in the [package creation] process.
An unhandled exception of type 'Silanis.ESL.SDK.EslServerException' occurred in Silanis.ESL.dll
Additional information: Could not create a new package. Exception: The remote server returned an error: (400) Bad Request. HTTP POST on URI https://sandbox.esignlive.com/api/packages. Optional details: {"messageKey":"error.validation.invalidEmail","message":"Email address is invalid: '[email protected]'","code":400}

mwilliams | Posts: 957

Reply to: Email validation using ESL SDK to prevent runtime error in package creation

0 votes
Any possible enhancement to the product would need to be posted in the Enhancement Ideas forum. Could you do the validation of the email address on your side, prior to creating the package? Or am I misunderstanding something? Let me know!

chris-josongmail-com | Posts: 30

Reply to: Email validation using ESL SDK to prevent runtime error in package creation

0 votes
Hi Michael, thanks for the response. Will move this post to enhancement section. We're already doing regex-based email validation. However, seems like ESL performs stricter validation that either checks if the email domain has valid TLD or valid MX record?

mwilliams | Posts: 957

Reply to: Email validation using ESL SDK to prevent runtime error in package creation

0 votes
No need to post in that forum just yet. Let's wait til we determine if there are extra checks in eSignLive. I was under the impression that it just tried to send the email and it would bounce if not right, but you could be right. What is an example of an email address that is not working?

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off