Summary of all examples by category

 

Capturing single fields from an incoming emails

A single field means something that is not in the form of a table or a list. For example, an incoming email containing a single order notification with one identification number, one customer name and one address, all of them are considered single fields as they contain a single text string for each field. On the contrary, an email containing a list of, for instance, article descriptions are not considered “single field” as the field article_description contain more than one text string. These examples shows how to capture this type of data:  

Using regular expressions

Regular expressions is a text capture method that can capture almost any kind of data if you know how to use them. The examples that cover this method are the following:  

Exporting data to other formats

Spreadsheets or databases are the most common way to save the fields that Email Parser gets from the emails. But saving the data to text files or use as an input for a script is also possible. This page contains a summary of the examples available in these cases:  

Capturing text in HTML tags from an email

Most emails use HTML instead of plain text to format the text of the message. Although Email Parser automatically converts HTML to plain text for easy parsing there are many cases where you want to identify HTML tags to capture the text you need. These examples show you how to do that:  

Exporting email data to Google Sheets

Along with the Excel action, exporting the captured text from the email to Google Sheets is the most common way to store the information from the incoming email. These are some examples that show you can use Email Parser to populate Google Sheets:  

Exporting email data to Excel

Email Parser supports exporting the captured fields to Microsoft Excel through the Excel action. The following examples show how you can do that:  

Parsing text from an email using the method “starts with… continues until…”

“Starts with… continues until” is probably the most common text capture method used in Email Parser as it is simple to use and easy to understand This page contains a list of the examples that use this text capture method:  

Using scripts

Among advanced users, scripting is often used to extend the capabilities of Email Parser. With the SDK (and the required knowledge) you can do almost anything you want in Email Parser:  

Capturing data from the contents of an attached file:

 

Saving attached files, renaming etc:

 

Using a script to capture text from an email

You can also use scripting to tell Email Parser how to capture text from an incoming email. The following examples shows you how to use this method:  

Filtering emails in Email Parser

Email filtering most of the times is a very easy to understand step. It usually just requires to enter a sender address or a given subject and Email Parser will not process any email not matching that criteria. But sometimes a more elaborate process is required. This page shows you a very basic example and also a complex one that combines filtering rules:  

Exporting data to a database

Email Parser is often used as the back end for processes that must be triggered by an incoming email. In this context, saving the captured information from the email to a database is a very common use case. The following examples use MySQL, SQL Server or ODBC actions to save or get data.