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 / Static email address i...
Power Apps
Answered

Static email address in collection for email screen

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm using the OFTB email screen and want to be able to hard code an email address in the MyPeople collection. The values in this collection are used for recipents of the email. 

 

Example:

 

Every time an email is sent using this screen I want INFO@INFO.com to be included in the To line.

Categories:
I have the same question (0)
  • PavanKumar Profile Picture
    479 on at

    Hi,

    You can add necessary email address column to the collection as follows: Collect(Collection_1,AddColumns(Sharepoint_List,"NewColumn_1",info@gmail.com));

     

    and use it to send email as required.

     

    Please mark it as verified if it answers your question

    Regards,

    Pavan Kumar Garlapati

  • Verified answer
    FoDelement Profile Picture
    435 on at

    @Anonymous 

    Eidt the code of the "send email" icon.

     Set(_emailRecipientString, Concat(MyPeople, Mail & ";")); 
    Office365.SendEmail(_emailRecipientString & "INFO@INFO.com", TextEmailSubject1.Text, TextEmailMessage1.Text, {Importance:"Normal"}); 
    Reset(TextEmailSubject1); 
    Reset(TextEmailMessage1); 
    Clear(MyPeople)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @FoDelement Thanks for the reply! This is perfect, but is there anyway to have the email address show in the EmailPeopleGallery as well so it doesn't confuse my users?

  • FoDelement Profile Picture
    435 on at

    That being a lookup column, it may be better to just add a label and put "Info@info.com will also be emailed" or something like that. 

     

    https://snipboard.io/V7bULE.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @FoDelement Correct me if I'm wrong, but the PeopleBrowseGallery is the lookup and the EmailPeopleGallery list all the people in the MyPeople collection. Is there a way to have a default value in the MyPeople gallery without having to add to the collection manually?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @FoDelement Figured it out. Added the address to the collection from the OnVisible property of the screen. Thanks for the help!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard