web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trying to send an emai...
Power Automate
Unanswered

Trying to send an email using send email action

(0) ShareShare
ReportReport
Posted on by 25

Trying to send an email (Gmail) using "send email" action (SMTP server) however, getting an error message as followed
 

"Correlation Id: 26b067d4-5f67-4499-b1e1-56387ac3c739

535: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials r23-20020aa78457000000b006c3069547bfsm7248746pfn.79 - gsmtp: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to send email message. ---> MailKit.Security.AuthenticationException: 535: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials r23-20020aa78457000000b006c3069547bfsm7248746pfn.79 - gsmtp ---> MailKit.Net.Smtp.SmtpCommandException: 5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials r23-20020aa78457000000b006c3069547bfsm7248746pfn.79 - gsmtp
--- End of inner exception stack trace ---
at MailKit.Net.Smtp.SmtpClient.<AuthenticateAsync>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MailKit.Net.Smtp.SmtpClient.Authenticate(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken)
at MailKit.MailService.Authenticate(Encoding encoding, String userName, String password, CancellationToken cancellationToken)
at Microsoft.Flow.RPA.Desktop.Modules.Email.Actions.EmailActions.SendEmail(Variant from, Variant senderDisplayName, Variant to, Variant cc, Variant bcc, Variant subject, Variant body, Variant attachments, Variant smtpServer, Variant username, Variant varPassword, Boolean isBodyHtml, Int32 serverPort, Boolean needsAuthentication, Boolean enableSsl, Boolean acceptUntrustedCertificates)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Email.Actions.SendEmail.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)"

I am entering correct gmail address and pwd in the "SMTP authentication" section still not sure what is bad.


  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @Vedant111 

     

    This maybe you have enabled the 2-Factor Authentication and you are giving the regular password as you use for web login instead of app password

    Check below link

    https://www.zdnet.com/article/gmail-app-passwords-what-they-are-how-to-create-one-and-why-to-use-them/

     

    There you need to select Mail as APP and Select Device as Windows, it will show you a password that you need to use without spaces

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

  • Vedant111 Profile Picture
    25 on at

    Hi @Srini007 appreciate your response. Pls check the screenshot. It says its not applicable for my account.

    Screenshot 2023-11-28 020545.png
  • Vedant111 Profile Picture
    25 on at

    Also, my 2-step verification is off already

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard