Skip to content

Email not validated #2712

@myleshyson

Description

@myleshyson

Describe the bug

We had a situation where someone accidentally filled in the Recipient Emails field with an invalid email address.

We ended up getting 100s of "Email notification failed to send" emails because of it.

verbb\formie\models\Notification should be using an email validator for for email fields and it's not. Yii has a built in email validator that can be used for this .

Steps to reproduce

  1. Add an invalid email address to the Recipient Field
  2. See that the notification saves successfully

Form settings

N/A

Craft CMS version

5.8.23

Plugin version

3.1.4

Multi-site?

No

Additional context

No response

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