No that's what I asked.
supposing i have a predefined list say L having many email ids. Can I
simply send to a mail to everyone like this:
mail.send(to=L,
....
On Wednesday, April 20, 2016 at 2:18:48 AM UTC+5:30, Dave S wrote:
>
>
>
> On Tuesday, April 19, 2016 at 1:24:34 PM UTC-7, Emmanuel Dsouza wrote:
>>
>> mail.send('[email protected]' , #here i want to attach a list of mail ids.
>> 'Subject',
>> 'Body'
>> )
>
>
> I think you just put a list in the 'to' argument.
>
> mail.send(['[email protected] <javascript:>', '[email protected]
> <javascript:>', '[email protected] <javascript:>']), ....
>
>
>
> /dps
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.