Skip to main content
Skip table of contents

Email import

After reading this document, you are able to connect Onventis Invoice Processing to your Office365, Gmail mailbox or add a connection with another mail server using IMAP.

Office 365: Provide a one time consent:

If your Active Directory setup does not permit individual users or accounts to give consent to read mailboxes, a one-time consent is necessary. If consent is allowed, you can skip this step and proceed with creating new mailbox configurations.

To support this authentication method, the following actions must be completed once:

  1. The Azure Active Directory administrator logs into Onventis and assigns themselves the role of 'Azure Active Directory Manager'.

  2. Navigate to Maintenance → Settings → Email import configuration

  3. Click on the “Office365 Consent” button to open the Microsoft Login screen and log in with the Microsoft Administrator account.

  4. On the next screen, grant directory access to our application to enable email import.

  5. Check 'Consent on behalf of your organization' and click 'Accept'.
    If you forget to check this box, you will need to fully remove the Onventis application's access within your Active Directory, clear your browser cache, and repeat all steps.

image-20240801-084736.png
image-20240801-084750.png

 New office365 / Gmail

To setup a connection with an office356 or Gmail email address:

  1. Navigate to Maintenance → Settings → Email import configuration

  2. Click on the arrow next to “New” and click on the desired new e-mail connection

    Untitled-1-20250703-144337.jpg
  3. A new Office365/Google window will be shown. Login on this window with the e-mail address you want to integrate with.

  4. Once completed, a new row will be shown in the overview and the details are already filled in.

  5. Now do fill in the Company related to this mailbox.

  6. Besides, it is important to configure the correct Folder settings. Click on “Check connection and load folders” to retrieve the right folders.

  7. Now configure the folders in the Folder settings. An example is given below.

    1. Retrieve mails from – the default folder from the mailbox to be read out

    2. Move imported mails to – the folder to which successfully imported emails are moved

    3. Move not imported mails to – the folder to which not successfully imported emails are moved

    4. Untitled-20250703-144307.jpg
  8. By activating “Auto processing”, the mailbox will be scanned for new e-mails based on a schedule. This is recommended to automate the processes.

New IMAP connection

When you don’t use a Office365 or Google acocunt, you can manually add an e-mail address.

  1. Navigate to Maintenance → Settings → Email import configuration

  2. Click on the “New” button

  3. Enter the fields:

    1. Description: Enter the description (this is displayed in the ‘import via email’).

    2. Company: Enter a company to which this configuration is linked

    3. User: Enter an user or role. (Only this person or user linked to this role can use this configuration during import).

    4. Auto processing: check this box if you want to start automatic import

    5. IMAP server: Enter IMAP Server (possibly prefilled with a default).

    6. IMAP port: Enter IMAP port (possibly prefilled with a default)

    7. Secure connection: Enter if the connection is secure (possibly prefilled with a default).

    8. User name: Enter user name of the mailbox which is used for import.  If you want to use a shared mailbox for a normal IMAP connection, you can change the login name to “user@domain.com\sharedbox” where user@domain.com is your own user name/mail and sharedbox is the name of the shared mailbox that you have access to.

    9. Password: Enter the password to get access to the mailbox.

    10. Use shared mailbox: Only available when this is an Office365 mail configuration.

    11. Shared Mailbox: Only available when this is an Office365 mail configuration.

Application settings – defaults

In the application settings, 3 settings are mentioned where defaults can be entered for the fields ‘IMAP server, ‘ IMAP port’ and ‘Secure Connection’.

These are the settings:

  • Imap.DefaultPort

  • Imap.DefaultServer

  • Imap.DefaultUseSsl (value True = checkbox checked, False = checkbox is not checked)

image-20240801-084832.png

 When something is prefilled here, it will be used as default when creating a new email import configuration.

Auto processing

If field auto processing is set to ‘True’, it will display additional fields. Section ‘import settings’

image-20240801-085209.png
  • Action after import:

  • Document center -> all emails are send to the document center so the user can determine what to do after. (“Processing imported invoices”)

    • Initiate transaction -> All emails which are imported successfully via auto-import are automatically processed and send to the worklist of the first activity.

  • Initiator for transaction: This is the user which is mentioned as initiator of the process what is started after import of the document. Always check if this user has rights to start the mentioned process type. If the user cannot do this manually, it will also not be possible this way.

  • Email split mode:

    • Single PDF attachment: Only picks an email when only 1 pdf is linked to the email.

    • Per PDF attachment: Creates a separate transaction per PDF file found in the email.

    • Per email: Creates a transaction for all documents found in the email.

  • Import body if PDF attachment set to ‘true’

    • e-mail with one PDF attachment;

      • PDF attachment will be the main document

      • E-mail body PDF will be an attachment

    • E-mail with multiple attachments;

      • First PDF attachment will be the main document

      • E-mail body PDF + other attachments will be the attachment

      • If there is no PDF attachment, then the e-mail body PDF is the main document

    • E-mail with no attachments;

      • E-mail body PDF will be main document

  • Import body if no PDF attachment: If set to ‘True’, the body of the email is imported as PDF and the transaction will have the body document as main document.

  • Put not processed to Document center: If an email for whatever reason cannot be processed as a transaction, this setting will put the PDF as task in the Document Import Center for further revision.

Section ‘start process settings’

image-20240801-085236.png

 Select the process type to be used to send the document to, for example purchase invoices.

Section ‘Schedule’

10-3-20250703-144528.png

Here the frequency of importing email from the mailbox can be determined. See “Job Management” for more information.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.