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
Click For Summary
SUMMARY

This discussion focuses on automating the process of opening email attachments, specifically Excel spreadsheets, and entering data into an HTML form using PHP and MySQL. Users can leverage tools like Thunderbird for email notifications and AutoIt for macro recording to streamline the workflow. Additionally, Windows PowerShell can be utilized for task automation on PC systems, allowing users to trigger application menus programmatically. The goal is to enable data entry from emails with specific headers without manual intervention.

PREREQUISITES
  • Familiarity with PHP for data processing and MySQL for database management.
  • Understanding of HTML forms for data entry.
  • Knowledge of email clients, specifically Thunderbird, and their extensibility.
  • Basic skills in scripting with Windows PowerShell for automation tasks.
NEXT STEPS
  • Research how to create add-ons for Thunderbird to automate email processing.
  • Explore AutoIt for recording and automating mouse and keyboard actions.
  • Learn about Windows PowerShell scripting for application automation.
  • Investigate PHP libraries for parsing Excel files directly from email attachments.
USEFUL FOR

This discussion is beneficial for developers and system administrators looking to automate data entry processes, particularly those working with email attachments, PHP, and MySQL databases.

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.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K