Email Drop Box

Many duzzits can be used as an email drop box. You may have noticed that you can setup an email token (Managing Your Account). Once you’ve setup an email token, you can send emails to any duzzit that accepts email.

Mapping email information to duzzit inputs

Duzzits usually take inputs. Information in emails is mapped to duzzits in two ways. First, certain email attributes are automatically mapped to duzzit inputs named “From”, “Reply-To”, “Subject”, “TextBody”, and “HtmlBody” (case insensitive). So, if you have a duzzit with an input named “Subject” and send an email to it, it will be run, and when run, the “Subject” input will contain the email subject.

For many uses, this simple mapping is all that is needed. For example, you might be working with a system that sends emails when orders have been processed. Let’s say that the text body of the email received from the system looks like this:

Sample System Order Processed
Order Number 12345 processed on 08/12/2011

If you configure that system to send emails to a duzzit with an input named “TextBody”, every time an order is processed and an email is sent, your duzzit will be run.

Within the duzzit, you can then parse out the order number, and take whatever action is desired (e.g. send an SMS message to notify that the order has been processed, call an API to lookup the order and write the order information to another system, etc).

Another way that itDuzzit makes email information available is by looking for name/value pairs in the email text. For example, let’s say the text body of the email is:

Sample System Order Processed
Order: 12345
Fulfilled: 08/12/2011

Every text line in an email that contains a colon (:) is considered to be a candidate name/value pair. In this case, there are two candidates. “Order” (with a value of “12345″), and “Fulfilled” (with a value “8/12/2011″).

If your duzzit has inputs named “Order” and “Fulfilled”, these inputs would match the candidates, and when run would hold the values “12345″ and “8/12/2011″.

So, if you have control over the email format, or the email you are processing contains data that matches this pattern, the name / value pair matching can simplify setup of a duzzit intended to handle emails.

Configuring a duzzit to take emails

When creating a custom duzzit to be an email drop box, you’ll need to check “Allow this duzzit to be invoked by email” on the “Duzzit Settings – Do It Settings” pane.

How can I see the email address for my duzzit?

Any duzzit that can be run via email will have a “Get as Inbox” option:

Clicking on “Inbox” will show the email address for the duzzit:

Comments are closed.