I wish all Bots contributors (a special thanks to Henk-Jan, of course)
a very happy 2012 :-)
JF
On Aug 31 2010, 12:06 am, BikeMike <mjg1...@gmail.com> wrote:
> Sorry I could not post to the original topic.http://groups.google.com/group/botsmail/browse_thread/thread/beee86fb...
>
> I had a need to do this again so I took another look at it.
> You can use To andCCif you need 2 addresses, but I needed 3.
>
> In communication.py line 609 (version 2.0.1) I changed...
> addresslist = [x for x in (row['tomail'],row['cc']) if x]
> to
> addresslist = row['tomail'].split(',') + row['cc'].split(',')
>
> This allows the email address fields to contain multiple comma
> separated values. The validation on these fields allows this for the
> To: but not for theCC: address, which is being validated as a single
> email address.
>
> I found some code for validating multiple emails, tried putting it in
> models.py with a few changes, but couldn't get it to display the red
> error messages (I get a webserver error when invalid emails entered).http://djangosnippets.org/snippets/1464/