Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot enter multiple To: addresses in Admin #31

Closed
blizam opened this issue Jul 5, 2016 · 4 comments
Closed

Cannot enter multiple To: addresses in Admin #31

blizam opened this issue Jul 5, 2016 · 4 comments

Comments

@blizam
Copy link

blizam commented Jul 5, 2016

Admin plugin > Email to: field

if you try and specify: [email protected], [email protected], [email protected]

You get an error... Tooltip says:

A part following '@' should not contain a symbol ',' .

And it won't allow you to save...

you can edit the email.yaml files as such:

and it works fine... and generates the same comma delimited values I listed above in the Email Admin

@w00fz
Copy link
Member

w00fz commented Jul 5, 2016

That's because the field is of type email but it's missing the multiple="multiple" attribute. The multiple attribute will fix the validation issue but I don't think multiple emails are supported in the email plugin itself, needs to be looked at.

@blizam
Copy link
Author

blizam commented Jul 5, 2016

https://github.com/getgrav/grav-plugin-email/blob/master/README.md#multiple-email-address-strings

It works by editing the email.yaml in user/config/plugins/ -- which will then show mulitple email addresses in the Email Admin... you just can't do it in via the Admin because of that validation

@w00fz
Copy link
Member

w00fz commented Jul 5, 2016

Yes, that's correct, you can use it, manually.

What I'm saying is that the validation in Grav Core and the yaml field for the to recipient in the email plugin, do not support multiple addresses.

@w00fz w00fz closed this as completed in e939d55 Jul 5, 2016
@w00fz
Copy link
Member

w00fz commented Jul 5, 2016

This is now fixed with getgrav/grav@3529d19 .
Also, the email plugin now allows a multiple attribute, as per w3c specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants