Email client

User guide · Everyone + Administrator

Email client (Mailbox)

Read and send your e-mail inside OBS, link messages to records, sort them with rules, and send e-mails from ready templates. OBS can also read a mailbox on its own and file the e-mails and invoices it finds.

MailboxRulesTemplatesAutomatic processing

Before you start

  • Connect your mailbox first: Control Panel → Personal email (Optional) (see First Steps → Personal email). OBS reads your mail with IMAP and sends with SMTP.
  • This is your mailbox. The e-mail address that OBS itself uses for notifications is a different setting (System email, administrators).
  • Rules and Out of office work only if your mail server supports the ManageSieve protocol (RFC 5804). Ask your e-mail provider if you are not sure.

I want to…

Open the mailbox

  1. 1Click Menu at the top left.
  2. 2Under the search box, click the envelope icon Mailbox (number 6 on the picture).
The menu: the Mailbox icon is number 6, the Control Panel (wrench) number 3.
The mailbox: folders on the left, the tools above the list, the messages in the middle.
1Compose message – write a new e-mail.
2Folders – the folders of your mailbox, as on the mail server; click one to open it.
3Tools – the four icons under the folders: New folder, Sieve rules (the gear), Out of office (the arrows) and Index mailbox.
4Filters – show only New, Unread or Draft messages; the star at the top right shows the starred ones.
5Message actions – the menu of a message: Reply, Reply all, Forward, Move, Relate, Delete.

Index mailbox

Index mailbox downloads your e-mails from the mail server and keeps a copy in OBS, so that searching is fast. OBS asks you to confirm before it starts.

Link an e-mail to a record

Keep an e-mail together with the record it is about: an invoice, a contact, a project.

  1. 1Click the menu of the e-mail (the three lines, number 5 above) and choose Relate.
  2. 2In the first field choose the module. The list shows the modules that keep e-mails, for example Incomes, Contacts, Projects.
  3. 3In the field ID start typing the number or the name of the record and pick it from the list.
  4. 4Click the green thumb up to link the e-mail. The red thumb down closes the window without a change.
Relate: the module (here Incomes) and the record ID.
Tip
You can also send e-mails from the record itself: open the record and click Emails (Working with a Record → E-mails).

Rules (Sieve)

Rules run on the mail server, so they sort your e-mail even when OBS is closed.

  1. 1In the mailbox, click Sieve rules (the gear under the folders).
  2. 2Under Create new rule choose a rule from the list.
  3. 3Fill in the fields of the rule (the folder is picked from your folders) and click Send. (The subject field may be labelled Subject of the contract.)
  4. 4The rule appears under Active rules. Delete removes it.
Sieve rules: a new rule that moves e-mails with Invoice in the subject to a folder; the active rules are listed below.
RuleWhat it does
Move Email From Address To FolderE-mails from one address go to a folder.
Move Emails From Domain To FolderE-mails from a whole domain (for example example.com) go to a folder.
Move Emails With Subject To FolderE-mails with a text in the subject go to a folder.
Automatic ReplyAnswers every e-mail automatically (the same as Out of office).
Relate Email To OBS RecordE-mails with OBS ERP: in the subject go to the folder ERP QUEUE, where OBS can file them (see File e-mails automatically).

Out of office

  1. 1In the mailbox, click Out of office (the arrows under the folders). OBS first checks that your mail server supports rules (ManageSieve).
  2. 2Write the reply text.
  3. 3Tick the check box to switch the reply on. Untick it when you are back.
Important
The reply is switched on or off the moment you click the check box: there is no separate Save.

The reply goes out with the subject [Out of office reply] and the original subject. Messages marked as spam get no reply.

E-mail templates

A template is a ready e-mail: a subject and a text. Open the module Email templates (type it in Quick access).

An e-mail template: name, subject and text with ~~full_name~~; the tab Modules is above.
FieldWhat it is
NameThe name of the template. Process steps and scheduled tasks call the template by this name.
SubjectThe subject of the e-mail; it can also contain ~~column~~. (The form may label it Subject of the contract.)
ContentsThe text of the e-mail. ~~column~~ puts in a value of the record, for example ~~full_name~~ in the template on the picture.
Chat message templateOptional: the text of a chat message for the same event.
Modules (tab)The modules where the template is offered in the list of templates of a record.

Where templates are used:

File e-mails automatically (administrators)

OBS can read a mailbox on its own and attach the e-mails to records. Send or forward an e-mail with the module and the record in the subject, for example OBS ERP: invoices > 125, and the e-mail with its attachments lands on invoice 125.

  1. 1Open Users, the user whose mailbox OBS reads, tab Email accounts, and tick Process ERP folder on the account (see Email accounts of a user).
  2. 2In that mailbox, add the rule Relate Email To OBS Record (see Rules): e-mails with OBS ERP: in the subject then go to the folder ERP QUEUE. Only this folder is processed.
  3. 3In Main scheduler, have an active task with the function ProcessERPMailbox (Scheduled Task), and check it with Show next run.
SubjectWhat happens
OBS ERP: invoices > 125The e-mail and all its attachments are copied to record 125 of the module invoices. The word right before > is the module (its name in the database), the number after it is the record ID.
OBS ERP: contacts > 1The same, for contact 1.

After processing, OBS moves the e-mail to the folder ERP ARCHIVE.

Good to know
The same task can also read bank statements in the SWIFT MT940 format: with the parameter mt940|TEXT, e-mails whose subject contains TEXT and that have an MT940 file attached become records in the module of MT940 bank statements.

Read invoices from e-mail

With the function ProcessInvoicesMailbox, OBS reads PDF invoices from a mailbox and makes expenses from them.

  1. 1On the mail account (tab Email accounts of the user) tick Process incoming invoices.
  2. 2An active LLM prompt must exist for the module OCR expenses (pdf_to_expense).
  3. 3Add a task in Main scheduler with the function ProcessInvoicesMailbox. The parameter is the folder to read; empty means INBOX.

Every PDF attachment becomes a record in OCR expenses. The LLM reads it, OBS completes it with the expense settings of the supplier, and creates the expense with its items. Processed e-mails go to the folder PROCESSED; e-mails with an invoice that could not be read go to FAILED, and their records in OCR expenses stay for you to complete by hand.

Email accounts of a user

Administrators see all mail accounts of a user in Users → the user → tab Email accounts. The fields are the same as in Personal email, plus the switches for automatic processing.

Users, tab Email accounts: the mail accounts of the user. The pencil opens an account with all its fields.
FieldWhat it is
Email, Email fromThe address of the account, and the address shown as the sender.
Email username, SMTP passwordThe login to the mail server.
SMTP server, port, security, authentication typeFor sending.
IMAP server, portFor reading.
SignatureAdded to the e-mails you write.
Out-of-office reply, Out of office activeThe text and the state of the automatic reply.
Process ERP folderOBS files the e-mails in ERP QUEUE (ProcessERPMailbox).
Process incoming invoicesOBS reads PDF invoices (ProcessInvoicesMailbox).

FAQ

Out of office or Sieve rules show an error.
Your mail server does not support ManageSieve, or OBS cannot reach it. Ask your e-mail provider; reading and sending e-mail still work.
An e-mail with OBS ERP: in the subject was not filed.
Check that it is in the folder ERP QUEUE, that the module and the ID in the subject are right (module > ID), that the account has Process ERP folder ticked, and that the ProcessERPMailbox task is active (Show next run).
Can I connect more than one mailbox?
Yes: in Personal email choose a new account in the list of accounts (First Steps).
Which address do the automatic e-mails of OBS come from?
From the System email, not from your mailbox (Administrator Setup).

Related: Notifications · Work Flow · Scheduled Task · Document Templates.

The menu: the Mailbox icon is number 6, the Control Panel (wrench) number 3.
The mailbox: folders on the left, the tools above the list, the messages in the middle.
Relate: the module (here Incomes) and the record ID.
Sieve rules: a new rule that moves e-mails with Invoice in the subject to a folder; the active rules are listed below.
An e-mail template: name, subject and text with <code>~~full_name~~</code>; the tab Modules is above.
Users, tab Email accounts: the mail accounts of the user. The pencil opens an account with all its fields.