I got:
File "/home/szimszon/fejlesztes/sajat/web2py/applications/raktar/
models/db.py", line 43, in <module>
mail=Mail( encoding = "UTF-8" ) #
mailer
TypeError: __init__() got an unexpected keyword argument 'encoding'
And I think my message is in utf8.
On febr. 23, 07:47, mdipierro <[email protected]> wrote:
> You either encode the message in utf8 (default) or you specify a
> different encoding= as argument of Mail
>
> On Feb 22, 1:30 pm, szimszon <[email protected]> wrote:
>
>
>
> > I wonder if somebody could turn me in the right direction?
>
> > On febr. 17, 09:16, szimszon <[email protected]> wrote:
>
> > > Hello!
>
> > > I like to send email with:
> > > context=dict(...)
> > > message=response.render( 'template.txt', context )
> > > mail.send( to = ['some email'],
> > > subject = 'proba',
> > > message = message,
> > > )
> > > There is some non-ASCII chars in the template, but I got
>
> > > Content-Type: text/plain; charset="us-ascii"
> > > MIME-Version: 1.0
> > > Content-Transfer-Encoding: 8bit
>
> > > And not charset='utf-8' :(
>
> > > Can I change it somehow?
>
> > > Tnx.
>
> > > ...
>
> > > Date: Wed, 17 Feb 2010 09:10:53 +0100 (CET)
> > > From: [email protected]
>
> > > --===============1207362275==
> > > Content-Type: multipart/alternative;
> > > boundary="===============2040283988=="
> > > MIME-Version: 1.0
>
> > > --===============2040283988==
> > > Content-Type: text/plain; charset="us-ascii"
> > > MIME-Version: 1.0
> > > Content-Transfer-Encoding: 8bit
>
> > > Sziasztok!
>
> > > Új számla lett felvéve a rendszerbe az alábbi adatokkal:
>
> > > ========================================================
> > > Eladó : New-Network
> > > Számlaszám: ffgg45
>
> > > ....
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.