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 / Send email to variable...
Power Apps
Answered

Send email to variable recipient

(0) ShareShare
ReportReport
Posted on by 8

I'm very new to power apps and need some help. 

I'm trying to send a copy of a form made in power apps, through the outlook connection.
I have connected Outlook, and also setup the connection, so that it works in the power apps editor online.
Except I get an error, when trying it out on my phone in the app itself. 

Im using the "SendEmailV2" function, in the OnSucces of the EditForm.

As all user's email adress will build on the same form: "initials@companyname.com" I want to set the recipient as TextInput@companyname.com. The text input being the users initials.

okidoki_0-1646727473112.png

But I get this error when using the app:

okidoki_1-1646727673517.jpeg

 

Any suggestions?


Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @okidoki ,

     

    Here you are giving the whole component to concatenate with "@companyname.com" where you actually need it's "Text" property.

  • okidoki Profile Picture
    8 on at

    Ok, so i've changed it to:


    SendEmailV2((DataCardValue10.Text&"@companyname.com")....) 


    But I've still got the same error in app.
    Again, it works on the computer (email recieved and all), but not in the app itself on the phone.

  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @okidoki ,

     

    The phone use the latest published version of your app. 

     

    Easy question, but have you published your app then reloaded Power Apps on your phone?

  • okidoki Profile Picture
    8 on at

    Hi @WiZey

    Yes, that would have been a typical human error. But yes, phone uses the latest version of the app. 
    Still the same error message

  • Verified answer
    timl Profile Picture
    36,682 Super User 2026 Season 1 on at

    @okidoki 

    If DataCardValue10 is a text box on your editform and you save this value to your SharePoint list/data source, I would suggest that you access this value through the LastSubmit property of the edit form.

    SendEmailV2((EditForm1.LastSumit.YourEmailRecipientField & "@companyname.com")....)


    This is because the form submission may reset the form and clear DataCardValue10, which is a possible explanation as to why it is appearing blank.

  • okidoki Profile Picture
    8 on at

    Yes, thank you. Changed it to send the email OnSelect, before the SubmitForm

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard