Using accurate Gmail SMTP server settings, sending from an email address that requires 2FA to sign in. Is that what is causing this error?
SendEmail step giving the following error: "There was an error in sending the email message. Please check your connection details provided and try again."
Hi @SVC TOCBot
By following these additional steps for the Gmail account.
Generate your app password
On your computer, go to your Google Account.
At the left, click Security.
Under 'Signing in to Google', click App passwords and sign in, if required.
If you don't find 'App passwords', click 2-Step Verification and follow the steps to turn on 2-step verification for your account. You may have to sign in again.
Under 'App passwords', click Select app and then Mail.
Click Select device and then Other.
Enter the name of your domain and click Generate.
From the app password box, copy the 16-character password that is generated.
Use this 16-char password as your email password used in AA.
As a best practice, you can use the credentials vault to store.
Thanks!
Hi @SVC TOCBot ,
Does your mail have any attachments?
If so, make sure that its less than 15MB, or else the mail will not get drafted and it will show the exact same error you have specified above.
Kind Regards,
Ashwin A.K
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
The 16 digit App password have some spaces do we need to remove the spaces in between?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.