Skip to content

Use the same method for validating e-mailaddresses in IVK_SaveEmailTemplate #43

@edwinvanelk

Description

@edwinvanelk

IVK_SaveEmailTemplate:

Use the same construction to validate e-mail addresses:

Valid split for From is coded as:
isMatch($EmailTemplate/From, '^[^\s\@,]+?@([a-zA-Z0-9-]+\.)+?[a-zA-Z]{2,}$')

Valid split for Reply-To is coded using (same) regex from enumeration:
isMatch($EmailTemplate/ReplyTo, getCaption(EmailTemplate.PrivateConstants.regex))

Can both validations use the enumeration value?

Change validation message to make it translatable:

To be able to maintain translation data correct; Can the Validation Feedback for the From member being changed from:

Template: {1}
Parameters: '$EmailTemplate/From' + ' isn''t a valid email address'

to something like:

Template: '{1}' is geen geldig emailadres
Parameters: $EmailTemplate/From

IVK_SaveEmailTemplate.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions