That is obvious right, but why not one step ahead?

It would be simpler if a programmer just code

 mail.send(groupname,subject="demo",message="demo")

web2py send function should detect if its a user or a group and if a group,
send the messsage to all members.

That is the way of an enterprise framework. The users and groups should be
user for more than just common tables.

 that is the experience i have with *Lotus Notes *
A lot of people hate it but i gets the job done with very few code



Thank you
António








2011/8/3 Anthony <abasta...@gmail.com>

> Also, if all the recipients get the same message (with no customization),
> then you can provide a list or tuple of recipients as the 'to', 'cc', or
> 'bcc' argument to mail.send(), so you only need to call it once.
>
> Anthony
>
> On Wednesday, August 3, 2011 3:47:30 PM UTC-4, rochacbruno wrote:
>
>> for user in 
>> db(db.auth_user.id==db.auth_group.id_user).select(db.auth_user.email):
>>
>>     mail.send(.....)
>>
>>
>> Something like that.
>>
>> 2011/8/3 António Ramos <ramst...@gmail.com>
>>
>>   i need to send email to all users of a group
>>>
>>>
>>> is there a simple way of doind this?
>>>
>>> like mail.send(*groupname*,subject="demo",message="demo")
>>>
>>>
>>>
>>> thank you?
>>>
>>> António
>>>
>>
>>
>>
>> --
>>
>>
>>
>>  --
>> Bruno Rocha
>> [ About me: http://zerp.ly/rochacbruno ]
>> [ Aprenda a programar: http://CursoDePython.com.br ]
>> [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
>> [ Consultoria em desenvolvimento web: http://www.blouweb.com ]
>>
>>

Reply via email to