web2py have a Mail class to send emails. It supports attachments.

If you have not, you can check the manual at section 8.2 "Sending
emails" for detailed examples.
The Mail constructor accepts an attachments argument (a single or
sequence of Mail.Attachment instances). It is possible to pass a file-
like object to the payload argument in the nested class Attachment
containing the blob data with it.

Here is the API documentation for the Mail feature:
http://www.web2py.com/examples/static/epydoc/web2py.gluon.tools.Mail-class.html

On Feb 22, 6:25 am, Saurabh S <[email protected]> wrote:
> I have a google app engine application developed using web2py
> framework.
>
> I have stored the files in blobstore and I am mailing the link to the
> user. Since I need to perform the delete operation every time(delete
> all the files from blobstore) and add a new file to the blobstore,
> except for the latest mail all other mails contain link that throws
> error.
>
> Is it possible to attach a file stored in blobstore in a mail and send
> it?
>
> Please provide your suggestion.
>
> Thanks

Reply via email to