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 Apps / How to validate an ema...
Power Apps
Unanswered

How to validate an email address

(0) ShareShare
ReportReport
Posted on by 2,297

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
    Microsoft Employee 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
    Microsoft Employee 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,297 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard