Bear with me, this sounds like a random thing to want to do but here goes…
I receive a daily email (HTML format) from one of my suppliers that is always in the same layout / format. Is there any way that I can ‘tap’ into this email and essentially loop through each row, adding records to a DB automatically.
I’m thinking that the only way to do this would be to manually copy out the HTML and run it through a script that does this but wanted to check the talent on here first. Maybe an amazing piece of software I never knew existed… Want to eliminate any type of manual work if possible.
Any suggestions welcome.
Edit: Maybe my question is more along the lines of “How do I run a script against an email from within my mail client, automatically?”
Write script that would fetch mail from your mailbox (best, receive them to separate mailboxes) using i.e. POP3 or IMAP mail protocol. Parse it as you like (maybe try
mailparseextension for this). Process how you like. Then set cron to launch your script with certain frequency (like once a day).