E-mail to Database

TeamDesk may accept emails directly to a database. E-mail to Database functionality can be useful if you need to process e-mails data to create new or update existing records automatically.

To enable E-mail to Database feature, click on the Setup > Database tab > Tools section > E-mail to Database link.

Fig. ‘E-mail to Database’

As a result, a unique E-mail Address will become associated with a database. It can be used in "To", "CC" or "BCC" email fields. You may also establish email forwarding to that address.

Security Token is just another level of security. If your email address was compromised by spam, you may change your token and get rid of it.

All inbound emails will be kept in the special "Mailbox" table that will be added to your database automatically.

Fig. ‘Mailbox table’


Uploaded data

Application Id

This column keeps database Id number.


Time and date, when an e-mail was sent.


E-mail priority.


You may use a sub address to pass some information to TeamDesk while hiding it from a user who receives a notification.
For example, if you include {appid}[.token]+tags@mail2db.teamdesk.net address in Bcc: fields or setup forwarding to that address system will place tags (sub address) value into "Tags" column of "Mailbox" table.


E-mail subject.


E-mail body.


These columns keep From, To and CC address values respectively.


If an e-mail includes up to 4 attachments, they will be stored in the Attachment 1,2,3,4 columns.


All errors that occur while e-mail processing are carefully logged in this column.

Please note that the system imports new emails every 3-5 minutes, so there may be a short delay within this interval.
Also please do not create references to the "Mailbox" table, since "Mailbox" content will be cleaned up periodically.

Next: Integration API