messageSent = imapdb(imapdb.Gmail_Sent_Mail.created == datetime.date.today()).select().first()
If you want to check that the message was stored at the imap service folder, it would be better to save subject and sender to the session for smaller query results, your query is retrieving any message stored in the sent folder. # (in compose action) >>> session.subject, session.sender = form.vars.subject, form.vars.sender # then >>> query = imapdb.Gmail_Sent_Mail.created == request.now.date() >>> query &= imapdb.Gmail_Sent_Mail.sender.contains(session.sender) >>> query &= imapdb.Gmail_Sent_Mail.subject.contains(session.subject) >>> sent = imapdb(query).select().first()Questions ** > > *— How to extract files (attachments) from an HTML form and append it to > an email message in MIME Multipart format?* > > The easiest way is using upload folders with sqlform.factory: http://www.web2pyslices.com/slice/show/1706/how-to-compose-a-multi-attachment-draftnormal-email-with-imapsmtp -- 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 the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.