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

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
    36,383 Super User 2025 Season 2 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
    36,383 Super User 2025 Season 2 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard