Page 1 of 1

PDF Attachments

PostPosted: Thu May 10, 2018 10:06 am
by yumveg
I'm wondering if this is possible with Servoy?

Can I add a button on a form for the user to click which behinds the scenes, checks for emails and if it finds an email with PDF attachments it saves the attachment to a folder. I'd then save the PDF file's name and saved location to the database and later on the user could select a PDF to display from a list.

I assume it is, tips on how to save the attachment from the email?

Thanks.

Re: PDF Attachments

PostPosted: Thu May 10, 2018 12:45 pm
by ROCLASI
Hi,

Did you take a look at the bundled mail plugin? It can handle attachments.
It uses the POP3 protocol which, by default, removes the fetched emails from your server. But you can add the leaveMsgsOnServer (boolean) property to disable that function.

Else you might want to look a the third party MailPro plugin which supports POP3 and IMAP.

Hope this helps.