> *Q: How do we create a Compose Form in web2py to compose, save and send > an Email?* > > I'd use SQLFORM.factory to collect the mail data and, after the form submission, use the welcome app's mail object to send the message with smtp (passing the user's smtp connection parameters maybe stored in the app's database).
> *Do you have any examples or references that we can look at?* > > No, but the book's forms, DAL and email chapters should be enough reference to implement the feature. > *Also how to do the Send versus Save as Draft form creation – because > Save will have to access the IMAP server, whereas the Send will have to use > the SMTP server?* > > There's no draft support in the imap adapter (but I will open an enhancement issue about it). However, you could implement your own draft service storing email drafts in the application's database. -- --- 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.