>
>
>    - *How to create a Compose form and Send**
>     Multiple 
>     Attachments
>    ?*
>    
> You create a SQLFORM.factory form and fill the mail.send input with the 
values collected on form submission. I guess you could use multiple file 
upload fields in the form factory and show or hide them with jQuery events.

Also check the book on multiple attachments (you should use file objects as 
input instead of the file paths and IIRC you also need to specify filenames 
when creating the Attachment objects)
http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Multiple-attachments
 

>
>    - *How to use the Same Form to Save as Draft – including the 
>    Attachments – on the IMAP server?*
>    
>  Almost the same but for the attachments you must use the same format 
returned to retrieve imap records: a list of dictionaries with this 
structure:

[{"encoding": ..., "filename": ..., "payload": ..., "mime": }, ...]

where payload contains the raw message part data and mime the part type 
specificied

>
>    - *
>    The above must be done without using any additional backend DB
>     — must be done using only IMAP and SMTP
>    .*
>
> I belive the steps detailed above do not actually require a secondary 
database. However, it is an odd requirement for a web2py appication. What's 
the rationale for that?

-- 

--- 
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.

Reply via email to