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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to validate an ema...
Power Apps
Unanswered

How to validate an email address

(0) ShareShare
ReportReport
Posted on by 2,295

Hello,

 

I'm sending emails from an app with:

 

OutlookdoOffice365.SendEmailV2( ...)

 

The email address is entered in a field, but when the email is fake (eg: 123), the button that triggers the code above returns an error message visible only to me, like:

 

Anotação 2020-05-21 151314.jpg

 

I'd like to have a method that returns this error message to the user, so she can fix the email address.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    This formula will return false if the email is invalid or true if the email is valid.

    Not(IsBlank(Match(YourInput,"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$",MatchOptions.Complete).FullMatch))

    Where YourInput is the email string you want to check.

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

  • Community Power Platform Member Profile Picture
    on at

    I should add, this just checks for the "anything@anything.anything" kind of format. It doesn't guarantee the email address is a valid inbox. To do that, you'll need to use an API such as NeverBounce or some sort of email validator.

  • WebPortal Profile Picture
    2,295 on at

    Ok, I understand it's just a regular expression.

    I was looking for a method to fetch the error message (after the email is sent) and show it to the user.

    In any case, your solution is helpful, thank you.

  • Community Power Platform Member Profile Picture
    on at

    We use a service called NeverBounce that returns if the email is valid, it should return a similar message.

    You'll have to wire the API call through an HTTP request in Power Automate. If you go that route I can still help, but I suggest getting help from the Power Automate community.

    https://powerusers.microsoft.com/t5/General-Power-Automate/bd-p/MPAForum

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

  • SC-11091452-0 Profile Picture
    2 on at
    This formula doesn't appear to be valid.
    Not(IsBlank(Match(YourInput,"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$",MatchOptions.Complete).FullMatch))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard