[Product-Developers] Sending mails in different languages at once.
Hedley Roos
hedley at upfrontsystems.co.za
Mon Feb 9 07:24:34 UTC 2009
> On 08.02.2009 3:46 Uhr, Taito Horiuchi wrote:
>> Hi,
>>
>> I would like to send e-mails from Plone using zpt in different languages,
>> like for users with different preferred languages, at once.
>
> Was has sending emails to do with ZPT?
I believe he uses page templates to render the mail body. If so then you
should be able to set a variable on the request which indicates the
language you want to use. I cannot recall the name of this variable.
Then you do mail_text = context.mail_template(REQUEST=REQUEST) and you
get the translated content.
Hedley
More information about the Product-Developers
mailing list