AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

Using Gmail With Acumatica

July 31, 2014 by Tim Rodman

Update December 11, 2019: This post has been updated with screenshots from Acumatica 2019 R2 and the latest recommended way to authenticate with Gmail using an app password.

Last week I wrote in general about the Acumatica email engine (click here). This week I’d like to go further and cover something more specific related to email in Acumatica.

Acumatica can act as an email client, just like Microsoft Outlook. It just needs to connect to an email server (Office 365, Microsoft Exchange, Gmail, Yahoo, AOL, a politician’s closet 🙂 , etc.).

In order to test out the Acumatica email functionality, I think it’s easy to use a Gmail account. Why? Because if you don’t have one you can easily create a free account on Gmail.com without having to call your IT department.

Once you have a Gmail account, setting it up in Acumatica is actually very easy. How easy?

Step 1: Go to your Google Account and create an App Password

1. Click here to access the Security tab of your Google Account

2. Turn on 2-Step Verification using the screenshots below, then go through the prompts to connect your Google account to your cell phone number.

Using Gmail With Acumatica
Using Gmail With Acumatica

3. Click on App passwords and go through the prompts to generate the app password. Make sure you copy the app password in the orange box in the 3rd screenshot to a secure place because you won’t be able to see it again.

Using Gmail With Acumatica
Using Gmail With Acumatica
Using Gmail With Acumatica

Step 2: System Email Accounts (SM204002) -> SERVERS tab

This is the only screen you need in order to setup your Gmail account in Acumatica.

Use the screenshot below to populate the SERVERS tab, noting the following fields:

1. Email Address: Use your Gmail account, not mine 🙂

2. Reply Address: Use your Gmail account, not mine 🙂

3. Root Folder (on Server): I set this to Inbox in the screenshot so Acumatica will see all emails sent to this email account, but you could change this to be any of your mail folders to restrict Acumatica to only read email that is put in that folder.

4. Username: Use your Gmail account, not mine 🙂

5. Password: Use the app password that you created in Step 1

Using Gmail With Acumatica

Step 3: System Email Accounts (SM204002) -> ADVANCED SETTINGS tab

Use the screenshot below to populate the ADVANCED SETTINGS tab, noting the following fields:

1. Username: Use your Gmail account, not mine 🙂

2. Password: Use the app password that you created in Step 1

Using Gmail With Acumatica

Step 4: System Email Accounts (SM204002) -> INCOMING MAIL PROCESSING tab

Use the screenshot below to populate the INCOMING MAIL PROCESSING tab:

Using Gmail With Acumatica

You actually don’t HAVE to activate Incoming Mail Processing if you only want Acumatica to send emails and not receive them, but you’d be missing out on the coolest part of the Acumatica email engine (in my opinion). I definitely recommend setting it up to at least give it a try.

I picked the E-Mail Support Common Response template for sending an automatic “we got your email” response to the sender of the email, but you could leave this empty, pick any available template, or easily create your own using the Notification Templates (SM204003) screen.

The most interesting part of the INCOMING MAIL PROCESSING tab (I think) is the MAIN PROCESSING section where you can have Acumatica do something with the email.

Click here for a cool Hackathon project that I participated in where we customized Acumatica to read incoming emails and turn them into AP Bills.

Another thing to note about the MAIN PROCESSING section is that it could be used in conjunction with the Root Folder (on Server) field from Step 2. You could create multiple folders (Gmail calls them “Labels”) in your Gmail account, maybe something like this:

  1. Acumatica – Create a New Case
  2. Acumatica – Create a New Lead

Then you could follow the steps on this page to setup your email account multiple times. Just make sure to use a new Account Name each time like “Gmail Create New Case” and “Gmail Create New Lead”. Then you could associate each of your mail folders (labels) to just one action under Main Processing. That way you would know that Acumatica would only do one thing with your email when you put it in a folder (label) within Gmail. Of course, if you do want Acumatica to do multiple things, just add multiple labels to the email within Gmail.

Step 5: Click the Save and TEST buttons

Using Gmail With Acumatica

This allows Acumatica to ensure that it can connect to Gmail. You should see a green checkmark show up next to the ACTIONS button if everything is ok.

Additionally, you’ll receive an email in your Gmail inbox with a subject of “Test”.

Using Gmail With Acumatica

Congratulations! You’re Done!

Wasn’t that easy?

Processing a Test Email

Now we should process a test email to make sure that everything is working.

1. Send an email to your Gmail account. You can send it to yourself from your Gmail account or use another email account to do the sending.

Using Gmail With Acumatica
Using Gmail With Acumatica

2. Use ACTIONS -> Receive All on the System Email Accounts (SM204002) screen to have Acumatica check for new mail.

When this is done, you should get a green check mark next to the ACTIONS button like we got in Step 5.

Using Gmail With Acumatica

3. Go to the Incoming (CO409000) screen in Acumatica and you’ll see the email. Click the blue hyperlink to open the email.

From here you can Forward, Reply, Reply All, all the stuff that you’re used to doing with email, just like working with email in Outlook.

Using Gmail With Acumatica
Using Gmail With Acumatica

Email Scheduling in Acumatica

You probably don’t want to have to manually select the ACTIONS -> Receive All option every time you want Acumatica to see your email. So, navigate to the Send and Receive Email (SM205020) screen to setup a schedule for sending/receiving email.

Click the watch icon on the top and click the Add button like this.

You can get pretty fancy with the schedules, but I normally set this to process every 1 minute.

Using Gmail With Acumatica
Using Gmail With Acumatica
Using Gmail With Acumatica

Setting Your Default Acumatica Email Account

Each user can set the default email account that gets used when Acumatica sends email. You might setup each user’s email account in Acumatica or have shared email accounts (maybe one per department).

Use the User Profile (SM203010) screen to set your default email account:

If you’re paranoid about a user selecting someone else’s email account and using it to send email on their behalf from Acumatica (ok, maybe not paranoid, a legitimate concern), then you can use row level security on the Email Account Access (SM201050) screen to determine which email accounts a user can see.

Note about error using Gmail with Username/Password

If you try to use your regular Gmail username and password, you will get the following error when you click the TEST button:

The mail send has failed.
535-5.7.8 Username and Password not accepted. Learn more at
Using Gmail With Acumatica

If you don’t want to generate an app password like we did in Step 1, you can use a less secure (not recommended) setting, by doing the following:

Access your Google account (click here) and click Security -> Turn on access (not recommended)

Using Gmail With Acumatica
Using Gmail With Acumatica

But this isn’t recommended for production Gmail accounts. Follow the instructions in Step 1 of this post for the most secure method of authenticating with Gmail.

Filed Under: Acumatica Learning Tagged With: Acumatica, Acumatica Blog, Acumatica Email, Acumatica Gmail, Acumatica Scheduling Email, Acumatica Training

Comments

  1. Paul Mainard says

    July 20, 2018 at 8:09 pm

    Hi Tim,

    Stumbled across this as I was looking for Acumatica to Gmail integrations like that created for MS Exchange. In order to configure a Gmail account within Acumatica when 2-step authentication is enabled, you need to register Acumatica as a Gmail application and generate a unique Application Password. This is applicable if you want to use Outlook as your Gmail client.

    Here’s the link to the article that explains how to do this.

    https://support.google.com/accounts/answer/185833

    • Tim Rodman says

      July 25, 2018 at 1:36 am

      Thanks for sharing Paul!

  2. Pankaj says

    February 28, 2018 at 3:18 am

    Sorry, i forgot to write the complete error message. ” the mail receive has failed. NO invalid credentials (failure)

    • Tim Rodman says

      March 6, 2018 at 9:48 am

      Hmmm, I haven’t tried this in a long time, but I’m getting the same error message now too:

      The only thing different for me now is that I have Google two-factor authentication turned on. Do you have two-factor authentication turned on for your Google account?

  3. Pankaj says

    February 28, 2018 at 3:14 am

    I tried the steps you mentioned above. i see an error that says The main receive has failed.

  4. Kathy says

    November 29, 2017 at 2:33 pm

    Hi Tim,
    I’m interested in using incoming email to manage AP invoices as you described in this post. Do you have more information on if and how this might work? Thank you.

    • Tim Rodman says

      November 29, 2017 at 3:04 pm

      Hi Kathy,

      Unfortunately, that still isn’t an option. Funny timing on your comment though because I was just looking at your exact scenario a couple of weeks ago. I had it working using Microsoft Flow to read an email inbox and automatically create new AP Bills from every email attachment. But, unfortunately, Flow made a change and it stopped working.

      I’ve heard rumors though that Acumatica is working with Microsoft to become an official connector in Flow. If that happens, then what I was working on will start working again and I can blog about how I did it. Until then, we just have to wait.

  5. Hun Hoem says

    August 20, 2015 at 10:00 pm

    In Acumatica version 5.2 it hard to configure gmail. Please do it.

    • Tim Rodman says

      August 21, 2015 at 9:37 am

      Hi Hun,

      Great question. I just tried connecting to Gmail using TryAcumatica.com which is running Acumatica 5.2.

      The instructions in the post above seem to still be correct, but the screen looks slightly different:

      Acumatica and Gmail

      Acumatica and Gmail

      So, not much difference there, but now I get the following error when I try to do Step 6 mentioned in the post above:
      Mail receive failed. NO Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)
      Mail receive failed. NO Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)

      It looks like the problem is due to increased security measured implemented by Google. You can read more about it by clicking here.

      Basically, it looks like the solution is to click here and select the Turn on option.

      Please let me know if that works for you.

  6. Doug Beckerman says

    August 4, 2014 at 9:22 pm

    Have you figured out how to make incoming emails link to Acumatica CRM?

    • Perpetual Acumatica Learner says

      August 5, 2014 at 7:17 am

      Hi Doug,

      The only options that I am aware of currently are the ones listed under the Main Processing section:
      1. Create New Case
      2. Attach to Business Account or Contact or Lead
      3. Create New Lead
      4. Reply to unassigned emails

      Only #2 and #3 are specifically related to CRM.

      I suspect that it’s possible to add things to the Main Processing section, but I’m not sure yet how to do it.

By using this website, you agree to our Terms of Use (click here)
Building Generic Inquiries & Pivot Tables

Online Members

 No online members at the moment

Recent Blog Posts

  • EP 160: How long does it take an Automation Schedule to run in Acumatica (Podcast) November 7, 2025
  • EP 159: Mark Safran – Smartsheet Dashboards with Acumatica data (Podcast) October 29, 2025
  • EP 158: Garrett Rochell – Acumatica Upgades, especially with the Modern UI (Podcast) October 4, 2025
  • acuCONNECT 2025 – Visualizing Inventory Balance $ and Service Level % TOGETHER September 19, 2025
  • EP 157: acuCONNECT 2025 Preparation – Part 4 (Podcast) September 16, 2025

Recent Forum Posts

  • Tim Rodman

    RE: Generic inquiry with information from Audit history(CT301000)

    @graemelm Just pulled it in as a Custom DAC fed by the ...

    By Tim Rodman , 1 day ago

  • Tim Rodman

    RE: Importing Acumatica User Roles / User Security Permissions from Excel

    @astra-mathis thank you for the detailed instructions. ...

    By Tim Rodman , 1 day ago

  • Astra Mathis

    RE: Importing Acumatica User Roles / User Security Permissions from Excel

    @timrodman - using the files from this article and foll...

    By Astra Mathis , 2 days ago

  • GraemeLM

    RE: Generic inquiry with information from Audit history(CT301000)

    @timrodman Hi Tim, hope you're well! I'm interested t...

    By GraemeLM , 3 days ago

  • sangland

    RE: Customer Portal Setup - Access issues to create sales order

    Hi, was there an answer for this problem?

    By sangland , 2 weeks ago

  • Bronwyn Duprey

    RE: Attribute Input Mask

    Does anyone know where I can find instructions on the f...

    By Bronwyn Duprey , 3 weeks ago

  • Astra Mathis

    RE: Importing Acumatica User Roles / User Security Permissions from Excel

    @nangel SM651500 Access Rights by Role or SM651700 Acce...

    By Astra Mathis , 1 month ago

  • matthewjames

    RE: Generic Inquiry Screenid changes to ScreenId=00000000

    if anyone gets this error again (resetting screen ID to...

    By matthewjames , 2 months ago

  • Travis

    RE: Pick List report suddenly not splitting on Shipment

    I never found a solution initially - here I am 3 years ...

    By Travis , 3 months ago

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.