Python Emailer
Budget: $30 – $250 USD
I have a folder that contains scanned images of invoices and delivery documents. They are named by the document number. i.e 000001.pdf. I want a python or delphi program that will check the folder for a document. When you find one. you will process it as follows.
1. found document to process.
2. open text file. Probably CSV format. Lookup document number and get email address from 2nd Field.
3. Create email with predefined subject and content (html)
4. send message to a specific ip address and port.
5. on sucess. Move file to done folder.
6. on fail. If failure is Missing record for email address. Move to “missing email folder” if any other error move to failed folder. Add to errors.txt reason for failure.
7. process next file. (add short sleep to not overload mail server 2 seconds)
8. all files completed sleep for a predetermine time (5mins)
9. move all files back from missing email folder and start at 1. again.
1. found document to process.
2. open text file. Probably CSV format. Lookup document number and get email address from 2nd Field.
3. Create email with predefined subject and content (html)
4. send message to a specific ip address and port.
5. on sucess. Move file to done folder.
6. on fail. If failure is Missing record for email address. Move to “missing email folder” if any other error move to failed folder. Add to errors.txt reason for failure.
7. process next file. (add short sleep to not overload mail server 2 seconds)
8. all files completed sleep for a predetermine time (5mins)
9. move all files back from missing email folder and start at 1. again.