Plain Text and HTML Email with auth.messages.verify_email

133 views
Skip to first unread message

Mark Li

unread,
Sep 14, 2012, 1:12:21 PM9/14/12
to web...@googlegroups.com
Is it possible to send both Plain Text and HTML Emails with auth.messages.verify_email? From the book, it seems auth.messages.verify_email only accepts a single string.


Massimo Di Pierro

unread,
Sep 14, 2012, 5:25:04 PM9/14/12
to web...@googlegroups.com
If the email text looks like '<html>....</html>' it should be send as html.

Mark Li

unread,
Sep 14, 2012, 7:14:13 PM9/14/12
to web...@googlegroups.com
Sorry I should've been more specific in my question.

I wanted to know if you could combine plain text and html emails with auth.messages.verify_email like you can with the following:

mail.send('y...@example.com',
 
'Message subject',
 
('Plain text body', '<html>html body</html>'))

howesc

unread,
Sep 14, 2012, 7:17:50 PM9/14/12
to web...@googlegroups.com
for what it's worth i have re-implemented some of the auth functions that send mail so that i can send both plain text and HTML emails (i don't read email in HTML so i still like plain text versions).  i'm not sure how many people are left who are like me....if there are enough it would be great to be able to specify to auth the plain text and the HTML versions for all emails - perhaps even pass in path to views (which is what i do in my extensions).

cfh


On Friday, September 14, 2012 2:25:04 PM UTC-7, Massimo Di Pierro wrote:

Falko Delarue

unread,
Jun 20, 2015, 7:10:40 PM6/20/15
to web...@googlegroups.com
how did you do it? could you please explain ┐(・。・┐) ♪

Mark Li

unread,
Jun 24, 2015, 11:24:46 AM6/24/15
to web...@googlegroups.com
Hey Falko,

I went with plain text email at first, but now everything is HTML email. Sorry I can't really help you out here!

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/x7NSemz7Jx8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages