# Email Account

* You can manage multiple incoming and outgoing Email Accounts in ActiveBooks.
* There has to be at least one default outgoing account and one default incoming account.

**You can access Email Accounts via:**                                                            Settings > Email/Notifications > Email Account

&#x31;**.What you need before creating an email account?**                               Before creating an Email Account, you need an Email Domain.

However, you can skip creating an Email Domain if you're using one of the services listed here.

#### 2. How to create an Email Account

1. Go to the Email Account list.&#x20;
2. &#x20;Click on "+Add New Email Account".
3. Enter the email address with the domain. Domains need to be created in order to create an email account. You don't need to create a domain if you're syncing an email from certain providers as listed here.
4. Enter the email account password.
5. Save.&#x20;

-If the credentials are correct, the email account will be synced.

**Important Note**: For some services like Gmail, you may need to turn on the settings to allow less secure apps.

#### 2.1 Additional options when creating an Email Account <a href="#id-21-additional-options-when-creating-an-email-account" id="id-21-additional-options-when-creating-an-email-account"></a>

&#x20;**1**. **Use Different Email Login ID**:                                                                      &#x20;

* To use an alternative email login and password to access this account.
* For example, if you have <notifications@example.com> and you want users to access this email with an alternate email ID.
* Tick this checkbox.
* The recipients will see <notifications@example.com> as the sender.

&#x20;**2.** **Awaiting password**:                                                                                  &#x20;

* If you're creating this account on behalf of someone and the password is unknown, tick this checkbox.
* When the other user logs in, they'll be prompted to enter the password.

**3.** **Use ASCII encoding for password**:

* Ticking this will use ASCII encoding for the password.

#### 3. Configuration of the Email Account

#### 3.1 Default Email Accounts                                                                          <a href="#id-31-default-email-accounts" id="id-31-default-email-accounts"></a>

* ActiveBooks will create templates for a bunch of email accounts by default.
* Not all of them are enabled.

There are two types of email accounts,&#x20;

1\. Outgoing                                                                                     2. Incoming                                                                                                                                           - Outgoing email accounts use an SMTP service to send emails.                                                                                                          - Emails are retrieved from your inbox using an IMAP or POP.                                                                                                              - Most email providers such as Gmail, Outlook, or Yahoo provide these services.

**3.2 Incoming Email Accounts**                                                                  -  To set up an incoming Email Account, check on **Enable Incoming** and set your POP3 settings, if you are using a popular email service, these will be preset for you.          &#x20;

![](https://429967333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgEi4gT9xOnYSAL1Pei%2F-MiKFoaxEkfUPKojDQSj%2F-MiLaUn11dHndfEOoG9j%2FEnable%20Incoming.png?alt=media\&token=94d446a1-5cd3-40b4-bd31-756938138125)

The following options are available for incoming emails:

* **Use IMAP**
* **Use SSL**
* **Attachment Limit**
* **Default Incoming**: If ticked, all replies to your company (eg: <replies@yourcomany.com>) will come to this account.
* **Email Sync Option**: Whether to sync all or only unseen emails.
* **Initial Sync Count**: Number of emails to sync the first time.

**Appending Emails To Documents**                                                                 - This feature creates documents when an email is sent to a particular email account.                                                                        - For example, you can append <support@example.com> to the Issue DocType.                                                                                     - On doing this, whenever an email is sent to <support@example.com>, the system will create an Issue for it.                                                                                                                    - Similarly if you link <jobs@example.com>, when emails are sent to <jobs@example.com>, a Job Applicant document is created.                                                                                                            - Enable Automatic Linking in Documents will link emails to documents

#### 3.3 Notification for unreplied messages                                         <a href="#id-33-notification-for-unreplied-messages" id="id-33-notification-for-unreplied-messages"></a>

**'Notify if Unreplied'** - If you would like ActiveBooks to notify you if an email is unreplied for a certain amount of time, You can tick this checkbox.          &#x20;

![](https://429967333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgEi4gT9xOnYSAL1Pei%2F-MiKFoaxEkfUPKojDQSj%2F-MiLcojj-yM0vgvrg9p-%2FNoti.png?alt=media\&token=3b771d9b-389d-4ea8-a748-0909c835b7f9)

* Here you can set the number of minutes to wait before notifications are sent and whom the notifications must go to.

#### 3.4 Outgoing Email Accounts                                                                    <a href="#id-34-outgoing-email-accounts" id="id-34-outgoing-email-accounts"></a>

* All emails sent from the system, either by the user to a contact or via notifications or via transaction emails, will be sent from an Outgoing Email Account.
* &#x20;To set up an outgoing Email Account, check on **Enable Outgoing** and set your SMTP server settings, if you are using a popular email service, these will be preset for you.

![](https://429967333-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgEi4gT9xOnYSAL1Pei%2F-MiKFoaxEkfUPKojDQSj%2F-MiLeIkJ5nlaBNInSups%2FEnable%20Outgoing.png?alt=media\&token=fe6e7085-2019-4135-9ee2-d18aa234d251)

The following options are available for outgoing emails:

* **Use TLS**
* **Port**
* **Disable SMTP server authentication**
* **Add Signature**: The default signature appended to the end of each email.
* **Default Outgoing**: Notifications and bulk emails will be sent from this outgoing server.
* **Always use Account's Email Address as Sender**: The email address of this account will be mentioned as the sender for outgoing emails.
* **Send unsubscribe message in email**: Send a link to unsubscribe from emails sent from this account.
* **Track Email Status**: Track if your email has been opened by the recipient. Note that, if you're sending to multiple recipients, even if one recipient reads the email, it'll be considered "Opened".
* **Enable Auto Reply**: If enabled, enter an auto reply message.
* **Append Outgoing Email to Sent Folder**: If using custom email servers like Zimbra or CPanel, SMTP will not automatically append emails to Sent folder. Enabling this option will ensure all emails are explicitly appended to the email account's Sent folder.
* **Use SSL for Outgoing Emails**: Use SSL as a standard for outgoing emails. Defaults to port 465.

#### 4. How ERPNext handles replies                                                           &#x20;

* In **ActiveBooks**, when you send an email to a contact like a customer, the sender will be the user who sent the email.
* &#x20;In the **Reply-To** property, the Email Address will be of the default incoming account (like `replies@yourcompany.com`).
* **ActiveBooks** will automatically extract these emails from the incoming account and tag it to the relevant communication.

**Important note self implementers :**                                                      &#x20;

* For outgoing emails, you should set up your own SMTP server or sign up with an SMTP relay service like mandrill.com or sendgrid.com that allows a larger number of transactional emails to be sent.
* Regular email services like Gmail will restrict you to a limited number of emails per day.
