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 / Sending mail depending...
Power Apps
Answered

Sending mail depending of text box and contains

(0) ShareShare
ReportReport
Posted on by 14

Hello, 

 

I'm Trying to do something in power apps, it's close to the subject already treated " Send Email Based on Text Input with contains", but little bit diiferent. ANd unfortunately I didn't find any advice or solution to solve my issue.

 

I would linke send a mail depending on text Input :

 

If text box contains "FLU-xxxxx" send mail to "JL@xxxxx.com"

If text box contains "MTG-xxxx" send mail to "GB@xxxx.com"

and ect.

 

I try to find the function contains, but nothing on it.

 

Could you please help me.

 

Thanks for feedback.

 

Mick 

Categories:
I have the same question (0)
  • timl Profile Picture
    37,248 Super User 2026 Season 1 on at

    @MickNaul 

    The syntax for this would look something like this:

    If("FLU-xxxxx" in TextBox1.Text,
     Office365Outlook.SendEmailV2("JL@xxxxx.com", 
     "Email title", 
     "Email message"
     )
    );
    If("MTG-xxxxx" in TextBox1.Text,
     Office365Outlook.SendEmailV2("GB@xxxxx.com", 
     "Email title", 
     "Email message"
     )
    );

     

  • MickNaul Profile Picture
    14 on at

    Hello Tim, 

     

    First thanks for feedback, your right, It's look likes something like that, but what I would like to integrate in this proposition is "contains" :

     

    If  textInput contains "flup" then send mail to someone.

    And if textinput contains "MTG" then send mail to someone else.

     

    the Text can't be only FLU-xxxxx.

     

    thanks for help

    Mick 

  • timl Profile Picture
    37,248 Super User 2026 Season 1 on at

    The 'in' operator carries out a contains match.

    Therefore, the following will resolve to true when the textinput contains flup. Does that help?

    "flup" in TextBox1.Text

     

  • Verified answer
    MickNaul Profile Picture
    14 on at

    Hi Tim,

     

    Thanks so much for your reactivity and tour helps, yes it's working as mentionned.

     

    Thanks again.

     

    Mick

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard