Skip to main content
Question

Email sending error.

  • February 6, 2026
  • 9 replies
  • 171 views

Forum|alt.badge.img+2

The automation is sending emails to the email ids in a google sheet.

Always showing “Error Encountered: One or more email ids are invalid. Please check the following email ids: [backupnumber2two2@gmail.com]. 
Error Line: 11” this error.

The email has no problem. It is newly created.

Previously the bot will run without any errors, but the email sending was still not working.

What could be the possible reason.

 

9 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 6, 2026

@amarnathks Check for leading or trailing spaces in that email address. Also, if it includes the brackets [ ] around the email address, that could cause some issues too. 


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • February 6, 2026

There is no extra leading or trailing spaces in the email.


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 6, 2026

@amarnathks No brackets, either?

If you remove that email address from your dataset, do all the other emails succeed?

The output you’re seeing is from the connector for Outlook. Try sending an email manually to that address and see if Outlook has a problem with it.


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • February 6, 2026

Now the bot is running successfully(removed first email), not showing any errors, but email is not sending.


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 6, 2026

@amarnathks We’re making progress! Something was amiss with that email address. There could be a special character that Outlook didn’t like or something else. 

Check Outlook’s “Outbox” and “Sent Items” folders. See if the messages get to one of those folders.

  • If they get to the Outbox, Outlook isn’t sending the emails to the mail server. IT may have to get involved.
  • If they get to Sent Items, Outlook is sending the emails to the mail server. Have the recipient check to see if the email you sent went to their “spam” or “junk” folder. If not, have IT check their Exchange/Outlook console to see where your emails went.
  • If your messages didn’t appear in either folder, they aren’t getting from the Bot Agent to Outlook. Verify the Outlook connector is active. Remember: The Email: Send action only works with the “old” Outlook. Microsoft removed the connector from the “new” Outlook.

For future-proofing your automation, you may want to consider switching over to using the Outlook 365 package to send your emails. It does require an OAuth connection, so you may have to involve your administrators and/or IT to assist.


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • February 6, 2026

I’ve used gmail not outlook.


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 6, 2026

@amarnathks Same principles.


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • February 7, 2026

Check out this screenshot. Is there an mistake in this. I have checked all folders in my Gmail account. No mails send or received.


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 9, 2026

Check out this screenshot. Is there an mistake in this. I have checked all folders in my Gmail account. No mails send or received.

Your settings look okay. I don’t think we’re having a communication problem between the Bot Agent and Gmail due to the fact that you got an error message regarding the email address. That’s good.

Now, the question is… why is Gmail accepting the email messages but not doing anything with them? If Gmail was not accepting the email messages, the Email: Send would throw an error (as you saw at the beginning of this thread).

The root cause of the problem could be the extra security with Gmail. The more I look into this, the more it appears Gmail is requiring OAuth2 credentials, which the Email: Send package does not support.

https://support.google.com/a/answer/176600?hl=en

You may have to revert to using REST API calls with OAuth2 authentication to send emails via Gmail.

https://www.tutorialpedia.org/blog/how-to-send-a-message-successfully-using-the-new-gmail-rest-api/

The other option is to use a different email service, like Yahoo, that still allows using SMTP.