How can I automate opening email attachments and entering data into a form?

  • Thread starter Thread starter GiTS
  • Start date Start date
  • Tags Tags
    Email
AI Thread Summary
The discussion revolves around automating the process of extracting data from Excel spreadsheets received as email attachments. The user currently manually opens emails and copies data into an HTML form, which is then processed by a PHP program to enter data into MySQL. Suggestions for automation include utilizing browser extensions or email clients like Thunderbird that allow for custom plugins to parse incoming emails. Additionally, keyboard/mouse macro programs like AutoIt are mentioned for automating repetitive tasks, although they may be limited by the need for consistent window placements. Windows PowerShell is also suggested as a potential tool for task automation, capable of interacting with applications and triggering menus. Overall, the focus is on finding efficient ways to streamline the data entry process from email attachments.
GiTS
Messages
132
Reaction score
0
I receive excel spreadsheets as email attachments all the time.
I usually open the email, then the attachment, then I copy and paste the data into an html form. A php program automatically enters the data into mysql properly formatted.
I would like to automate the process so that anyone sending emails to the address with the correct header is able to input data. How can I do this?

Thank you for your ideas
 
Technology news on Phys.org
GiTS said:
I receive excel spreadsheets as email attachments all the time.
I usually open the email, then the attachment, then I copy and paste the data into an html form. A php program automatically enters the data into mysql properly formatted.
I would like to automate the process so that anyone sending emails to the address with the correct header is able to input data. How can I do this?

Thank you for your ideas

Hey GiTS.

What browser do you use? Have you got access to an email daemon?

If you can add third party extensions to your browser and get notifications for incoming emails, use the SDK available to do that.

However if this is not possible, look for an open email client that allows you to hook the notification messages and then parse the message and do your stuff.

As a speculative response, something like Thunderbird might be configurable to do what you need in terms of creating a plugin or add-on given that it is open source for 1 and 2 there are quite a few add-ons (and I'm guessing the developers put in a lot of thought to the design and the SDK itself).
 
If the data is in exactly the same format every time you can use a keyboard/mouse macro recording program like "AutoIt". However, this will fail if it cannot work by playing back pre-recorded mouse movements and clicks. (i.e. window in wrong place = miss = fail). EDIT: However if you know the correct keyboard shortcuts to trigger the menus, it should be OK...

On a PC system, "Windows Powershell" from Microsoft (an official component) is a scripting language designed for task automation. It can certainly hook into applications and trigger their menus. I am not sure on its full capabilities as not being a windows tech I only looked briefly at it.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top