# Email Accounts

> Connect Gmail, Microsoft 365, Outlook, IMAP or send-only SMTP accounts to the Advanzo CRM inbox, personal or shared, choose folders and the sync start date.

To use the inbox feature, you need to connect email accounts. Advanzo CRM lets you connect **shared email accounts** and **personal email accounts**.

> **Info:** Email accounts in the inbox use **2-way sync**, and Advanzo CRM automatically associates the emails with the related records.

## Shared Email Accounts

Shared email accounts are **available in Advanzo CRM to all users who have been granted access to the ["shared inbox"](https://www.advanzo.ch/docs/sections/users#shared-inbox-permission)**.

In most cases, shared accounts are general email addresses such as sales@company.com or info@company.com.

> **Info:** Only administrators can connect shared email accounts in the application.

## Personal Email Accounts

A personal email account belongs to the logged-in user. No other user can view the account or interact with its emails.

> **Info:** Even though the account is called "personal", its emails that are associated with a contact are displayed in the contact profile, where other sales reps who can see the contact can see them too.

## Connect an Email Account

To connect an email account, go to **Inbox** in the main menu and choose the type of account you want to connect: personal or, if you are logged in as an administrator, shared (see the explanations above).

### General Config

- **Account Type** - Choose the **connection type** ([read more](https://www.advanzo.ch/docs/sections/inbox/accounts#account-connection-types)).
- **Sync emails from**

  Select the point in time from which you want to sync emails:

    - Now: Sync starts with the emails from the current time.
    - 1 month ago: Sync starts with the emails from 1 month ago.
    - 3 months ago: Sync starts with the emails from 3 months ago.
    - 6 months ago: Sync starts with the emails from 6 months ago.

> **Warning:** NOTE
> 
> You cannot change the selected period once you have created the mailbox.

- **Create Contact record if record does not exists.**

  Determines whether a contact is created in Advanzo CRM if the sender of an email does not yet exist as a contact.
- **Username**

  Only fill in this field if you use an Exchange server that requires a username instead of the email address for authentication.

### IMAP Connection Config

To connect your inbox to Advanzo CRM via IMAP, your email server must support IMAP (Internet Message Access Protocol) and SMTP (Simple Mail Transfer Protocol). You need the following details to connect your inbox using IMAP:

- Email Address
- Password
- Username
- **Incoming Mail (IMAP)**

    - Server
    - Port
    - Encryption
- **Outgoing Mail (SMTP)**

    - Server
    - Port
    - Encryption
- Allow non-secure certificate

  If your SSL certificates are not signed by a certificate authority, you can allow a non-secure certificate when initiating the connection.

After you have filled in all the required fields, click the **Test Connection / Retrieve Folders** button at the bottom to test your connection and retrieve the available folders.

> **Info:** The emails in the **trash and spam** folders are not synced during the first sync.

### Active Folders

The active folders are the folders that are visible in the Advanzo CRM email client and that are synchronised.

On this screen

In the account connection modal, the retrieved folders (for example Sent, Junk, Trash and INBOX) are listed under **Active folders**, each with a checkbox. Tick the folders you want to make active and sync, use **Test Connection / Retrieve Folders** to load the folder list, then click **Connect Account** to finish.

> **Warning:** NOTE
> 
> When you send an email from Advanzo CRM, it is saved on your remote server and in your Advanzo CRM installation even if the sent folder is not selected as an active folder.

### Email Signature

Staff members can configure an email signature in their profile. The signature is added automatically to the email content when they compose a new email.

### Primary Email Account

If you have connected several email accounts, you can mark one as the primary account. Advanzo CRM then always shows this account first: **whenever you open the inbox, the primary account is selected by default and you see its emails**.

To mark an account as primary, follow the steps below.

- Click the **Inbox** menu item.
- Click the **three dots** button on the right and choose **Manage Accounts**.
- **Toggle the primary switch** option on the account you want to mark as primary.

## Account Connection Types

There are **3 account connection types** in Advanzo CRM. Choose and configure the one that matches the kind of email account from which you want to sync and send emails.

The available connection types are:

- **Gmail**

  *Prerequisite*: You must configure the Google integration.
- **Outlook**

  *Prerequisite*: You must configure the Microsoft integration.
- **IMAP**

  *Prerequisite*: The `IMAP` PHP extension must be enabled.

> **Warning:** Each account connection type is optimised for the requirements of its connection, so choose the right type. For example, do not use the IMAP connection type to connect a Gmail account via the IMAP protocol.

### Authentication Failures

If Advanzo CRM fails to connect to an email account, for example via IMAP or because of invalid access tokens, the account is disabled and a message on the account says that authentication failed and that the account requires authentication.

In that case, reconnect the account by clicking the **Re-Connect** button.

If the account is of type **IMAP**, the account modal opens. To reconnect, **test the connection again, select the folders again** and click Connect. If the account is of type Google or Microsoft, you are redirected to the provider for authentication.

## SMTP-Only (Send-Only) Accounts

In addition to full two-way sync accounts (Gmail, Outlook and IMAP/SMTP), Advanzo CRM supports **SMTP-only** email accounts. An SMTP-only account can **send** email but does not sync an inbox.

This is useful when you only need outbound email — for example a transactional or relay address used by automation — without pulling incoming messages into the CRM.

- Provide the SMTP host, port, encryption and credentials of the sending account.
- Outbound emails (manual sends, templates, workflow emails) can be sent from this account.
- No folders or incoming messages are synced, so it will not appear as a browsable mailbox in the inbox.

> **Info:** Choose the SMTP-only connection type on the account form when you want send-only capability. For full inbox functionality with auto-association of incoming emails, use a two-way sync account instead.
