rob-luke / emails-html-to-pdf

Convert emails without attachments to pdf and send as email
32 stars 7 forks source link

Store Documents locally #8

Open mirisbowring opened 2 years ago

mirisbowring commented 2 years ago

Hi,

would it be possible to add an option to store the converted PDFs locally instead of sending them via SMTP again? I deployed this container in my Paperlass Compose stack and would like to store the documents directly in the import folder (shared folder) for paperless.

Alternatively we could post the document directly to the paperless api.

smseidl commented 2 years ago

I like the paperless API idea.

rob-luke commented 2 years ago

I also really like the API idea. I'll take a read of the paperless docs in the coming days.

Saving to disk would also be easy, I'm happy to implement that too.

rob-luke commented 2 years ago

Ok note to self, here is the docs for the relevant api

https://paperless-ng.readthedocs.io/en/latest/api.html#posting-documents