311
Views
4
Comments
Solved
I cant sent email with Username and Password not accepted error

I am trying to configure SMTP but when I sent an email in email logs the status is showing pending after some time it gives me below error.

I tried to fix this from this solution but couldn't fix it because the password and user are fine. https://www.outsystems.com/forums/discussion/48311/error-username-and-password-not-accepted-when-send-email/#Post251764



The configuration if the SMTP.



2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Malalai,

Few moments before after seeing the Post, I gave a try for the same implementation in my personal environment and I also encountered the same error.... after following one of the point mentioned in the google document  I got it resolved..

1) Email Configuration should look as shown below (set correct Username and Password value)


2) Using the below mentioned link enable the Less Secure App accessibility option in your Google account

https://myaccount.google.com/lesssecureapps


3) You will get an inbox mail like below

4) Check the implementation by Triggering a sample mail using a button which includes a SendEmail action flow node


Hope this helps you!


Regards,

Benjith Sam

UserImage.jpg
Malalai Habibullah

Benjith Sam wrote:

Hi Malalai,

Few moments before after seeing the Post, I gave a try for the same implementation in my personal environment and I also encountered the same error.... after following one of the point mentioned in the google document  I got it resolved..

1) Email Configuration should look as shown below (set correct Username and Password value)


2) Using the below mentioned link enable the Less Secure App accessibility option in your Google account

https://myaccount.google.com/lesssecureapps


3) You will get an inbox mail like below

4) Check the implementation by Triggering a sample mail using a button which includes a SendEmail action flow node


Hope this helps you!


Regards,

Benjith Sam

 

I tried your suggested way on but it is showing in logs pending after some time is gave the same user and password error.

 

2018-09-27 18-20-33
Swatantra Kumar
Champion

Hi Malalai,

  1. It could be possible that you may require to re-verify your client/device to Google besides allowing for less secure apps.
  2. If you have 2-step authentication enabled on you gmail account then you cannot use the regular password, in that case you need to use application-specific passwords.
  3. Or, disable the 2 step verification (google doesn't recommend).

Regards,

Swatantra

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Malalai,

If the mail status is pending it means -- the configuration is correct but something might be messing up under the hood..

Just wait for some time (it's asynchronous process)

Or

Try this...

After enabling the Less Secure App accessibility option in your Google account, reconfigure the Mail configuration in the Service Center with the correct credentials and field value...

Note: The Username and Password should be exactly the same which is used for Google Account Login


In my case the mail got triggered immediately just after I clicked the sent button from the UI screen..


Regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.