lincolnloop / django-mailfriend

Generic "mail this to a friend" app for Django
http://code.google.com/p/django-mailfriend/
Other
13 stars 5 forks source link

Multiple to addresses #2

Open justquick opened 14 years ago

justquick commented 14 years ago

We are starting to use this project in production and have the use case of needing to send mail to multiple recipients. I see people entering to addresses separated by commas/semicolons which breaks validation (and the view itself before my last patch). Im going to work on this problem this week and will follow up when I have a fix

lincolnloop commented 14 years ago

Thanks Justin! I'd recommend handling this in a clean_email method on the form that splits the cleaned_data['email'] into a list and runs the email regex validator on each item in the list.

justquick commented 14 years ago

Will do, thanks