Company is using eshop, based on Joomla and Hikashop, and is selling various blood tests.
User registers and orders a test. By courier gets sample collection kit, takes samples and sends them back to company. The order number is issued by Hikashop. Then company sends samples to laboratory. This Lab do the test and sends back to company an email with: some text in email body where you can find Order number and attached a pdf test report.
I need a component/plugin that will do the following:
Scan incoming mailbox (can be whatever mailbox). If in incoming email body or subject founds Order number which is the same like in Hikashop orders, do the following:
a) saves attached pdf in dedicated folder (not accessible by everybody) and ads Order number and User name to file name;
b) In Hikashop changes order status and sends an email with some text to user with this new pdf like attachment.