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 e-mail with butto...
Power Apps
Answered

Send e-mail with button Office365Outlook.SendEmail() with email from a textfield

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to send an email from a button with the formula:

 

Office365Outlook.SendEmail()

 

My table is a sharepoint list, in which we have a text-field (this can be changed if another column-type will work), where the user writes an e-mail address. I would like to be able to use the above formula to SEND to that e-mail. However, if I write the following formula, it will not send:

 

Office365Outlook.SendEmail(TextFieldDataCard, "Subject", "Body", {From: User().Email)

 

This above does not work. I have tried a variety of different ways of retrieving the datafield such as:

 

TextFieldDataCard.Text , Value(TextFieldDataCard.Text)

 

None of which work.

 

If I write it the following way, with: "" then it works such as bellow:

 

Office365Outlook.SendEmail("email@email.com", "Subject", "Body", {From: User().Email)

 

Is there any way to pull a written email address from any sort of field and send to a such mail?

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous

    Can you begin by making these changes and let me know the test result?

     

    Office365Outlook.SendEmailV2(TextFieldDataCard.Text, "Subject", "Body", {From: User().Email})

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi@mdevaney  ! 🙂

     

    Yes, I am sorry, that was merely a type in my original post. It was easier to write it that way as I have a lot of information I would need to delete in the actual button. The formula gives me no errors, however, I do not receive any email when I send to my own e-mail.

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Make sure its also SendMailV2.  Best to use the most current connector 😉

     

    Can you please put TextFieldDataCard.Text in the Text property of the label and let me know if it shows any email?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @mdevaney,

     

    Perfect! If I create a label and pull that information to the Formula it works. Thank you for bringing that thought to mind! 🙂

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 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard