Skip to content

Commit bd4baad

Browse files
author
Ashley Gau
authored
Merge pull request #185 from firebase/@invertase/default-email-address
feat(firestore-send-email): update "Default FROM address" param to allow name to be added
2 parents e43620c + 016d65f commit bd4baad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

firestore-send-email/extension.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,13 @@ params:
106106
- param: DEFAULT_FROM
107107
type: string
108108
label: Default FROM address
109-
validationRegex: ^\S+@\S+\.\S+$
110-
validationErrorMessage: Must be a valid email address
109+
validationRegex: ^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$|^.*<(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})>$
110+
validationErrorMessage: Must be a valid email address or valid name plus email address
111111
required: true
112112
description: >-
113-
The email address to use as the sender's address (if it's not specified in the added email document).
113+
The email address to use as the sender's address (if it's not specified in the added email document).
114+
You can optionally include a name with the email address (Friendly Firebaser <foobar@example.com>).
115+
example: foobar@example.com
114116

115117
- param: DEFAULT_REPLY_TO
116118
type: string

0 commit comments

Comments
 (0)