missing imports in py4web/utils/mailer.py

17 views
Skip to first unread message

David Manns

unread,
Sep 16, 2026, 9:55:32 AM (8 days ago) Sep 16
to py4web
in one of my apps I use auth.sender.send() to send OTP to verify the user.

with the 08032026 version of web2py this is failing.

it seems that mailer.py needs additional imports:

from email.charset import QP as charset_QP
from email.charset import add_charset

 after line 16:
from email import message_from_string


??

Christian Varas

unread,
Sep 16, 2026, 9:58:00 AM (8 days ago) Sep 16
to David Manns, py4web
Hi, there is PR waiting about this missing imports

I had the same issue with OTP

Greetings 
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/73107327-2b71-4659-a9ca-f3e7157b2456n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages