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 / Email not sending when...
Power Apps
Answered

Email not sending when clicking a button. Failing on mobile devices. Works on computers.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

Hoping someone can help. I have created an app and I am trying to send an email to an Outlook 365 account.

It works when I do it from a computer but when I am trying to do the same from and Android Device and an Apple Device, I get an error message saying the following, see attached screen shot.

 

This is the code I am using see below. I have blanked out the three email addresses. But as I mentioned I can’t seem to work out why it sends from a computer and not a mobile device.

I have even added a gmail account to see if that narrows down the issue, to see if it is just Office365 its having a problem with. But doesn’t seem to be. So, two are Office365 email addresses and the other is gmail.

Oh, I forgot to mention I have also included the correct connectors on the app as well. 

Apologies for all the text, I just wanted to include so that you guys can see everything.

 

Office365.SendEmail ("xxxxx@xxxxxx.co.uk , xxxx@xxxxxxx.co.uk , xxxxxxxxx@gmail.com" , "Declaration Signature" ,"By signing, I declare that all the information supplied on the previous form (xxxxxxxx xxxxx Questionnaire) is true and complete to the best of my knowledge and belief. I also understand that it is my responsibility to report any changes to my circumstances as soon as is practicable. <br/> I further confirm that I have been inducted by xxxxxxxxxxxxx, that I have read, understood and will carry out all of my working practices according to the xxxxxxxxxxxx Risk Assessments, Method Statements & Safe Systems of Work. I understand that failure to disclose any information or to knowingly provide false information may have a detremental effect on my contract to work with xxxxxxxxxxxxx.<br/>" & "<br/>" & TextInput3 & "<br/>" & DatePicker1, {Attachments:Table ({Name: "Inductee Signature.jpg", ContentBytes: PenInput2.Image,  '@odata.type' : ""}),IsHtml: true});UpdateContext({BlankImage: PenInput2.Image}); Navigate (Successful_1, ScreenTransition.Fade)

 

Thanks for your help in advance.

ScreenShot.jpg
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @Anonymous ,
    I had a quick look at the rest of it, but I think the first thing you need to do is put semi-colons instead of commas between the email addresses and also look at the DatePicker reference as marked.

    Office365.SendEmail(
     "xxxxx@xxxxxx.co.uk ; xxxx@xxxxxxx.co.uk ; xxxxxxxxx@gmail.com", ///SemiColons added
     "Declaration Signature" ,
     "By signing, I declare that all the information supplied on the previous form
     (xxxxxxxx xxxxx Questionnaire) is true and complete to the best of my knowledge and belief. 
     I also understand that it is my responsibility to report any changes to my circumstances as
     soon as is practicable. <br/> I further confirm that I have been inducted by xxxxxxxxxxxx, 
     that I have read, understood and will carry out all of my working practices according to 
     the xxxxxxxxxxxx Risk Assessments, Method Statements & Safe Systems of Work. 
     I understand that failure to disclose any information or to knowingly provide false 
     information may have a detremental effect on my contract to work with xxxxxxxxxxxxx.<br/>" 
     & "<br/>" & TextInput3 & "<br/>" & Text(DatePicker1.SelectedDate,ShortDate) //**ADDED**
     {
     Attachments:
     Table(
     {
     Name: "Inductee Signature.jpg", 
     ContentBytes: PenInput2.Image, 
     '@odata.type' : ""
     }
     ),
     IsHtml: true
     }
    );

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much for your reply @WarrenBelz 

     

    I will have a look at this today and get back in touch with you. Thanks again. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz 

     

    I have tried the code you provided and unfortunately I have added the code and it has indicated I have an error with the following:

     

    TextInput3

    DatePicker1

    (See Screenshot)

    I have checked and checked the code again and nothing seems untoward. Seems to be that little bit that I have added.

    Also, as it wasn't working I have added the old code back in and I am now get the error on the computer when I wasn't before when I logged this on Friday. So I have no idea what is happening. The code is exactly the same as it was on Friday and working fine, today its not working on either. Very bizarre. 

     

     

    PowerApps Screeshot.JPG
  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @Anonymous ,

    Yes - TextInput3 should be TextInput3.Text

    The DatePicker however should be correct

    It is really helpful to use Format Text once you have valid code - I have parsed it below

    Office365.SendEmail(
     "xxxxx@xxxxxx.co.uk ; xxxx@xxxxxxx.co.uk ; xxxxxxxxx@gmail.com",
     "Declaration Signature" ,
     "By signing, I declare that all the information supplied on the previous form
     (xxxxxxxx xxxxx Questionnaire) is true and complete to the best of my knowledge and belief. 
     I also understand that it is my responsibility to report any changes to my circumstances as
     soon as is practicable. <br> 
     I further confirm that I have been inducted by xxxxxxxxxxxx, 
     that I have read, understood and will carry out all of my working practices according to 
     the xxxxxxxxxxxx Risk Assessments, Method Statements & Safe Systems of Work. 
     I understand that failure to disclose any information or to knowingly provide false 
     information may have a detremental effect on my contract to work with xxxxxxxxxxxxx.<br/><br/>" &
     
     TextInput3.Text & //*** ADDED ***
     "<br/>" &
     Text(
     DatePicker1.SelectedDate,
     ShortDate
     )
     {
     Attachments:
     Table(
     {
     Name: "Inductee Signature.jpg", 
     ContentBytes: PenInput2.Image, 
     '@odata.type' : ""
     }
     ),
     IsHtml: true
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, @WarrenBelz

    Thanks again for you help with this. I have changed the code and added the missing bit for TextInput.Text and it still does not seem to be playing ball.

    I have looked through the code, and matched it character to character and nothing seems out of place. See attached image. 

     

    PowerApps Screenshot2.JPG
  • Verified answer
    Max44 Profile Picture
    223 on at

    On Android, open Settings, go to Apps & notifications, choose the troublesome app, and tap Storage & cache. Here, you have two options. First, try choosing Clear Cache to erase only the temporary files that the app has stored on your phone. (When these grow too numerous or become corrupted, they can mess with the app’s speed and power.) Clearing the cache won’t mess with the app’s settings, but it may not be enough to solve your issue.

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @Anonymous ,

    What is the error on the red cross?

    Also going right back to the start - are you saying this is working on PCs now or not?

    One thing you can try on Andriod/iPhones also is uninstalling the app, rebooting the phone and installing it again.

    We have had to do that on a few occasions.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz 

     

    Yep. So when I originally logged this it was working on the computer without any issues and not the mobile devices. But then for some odd reason came in the next day and I was unable to access on both, now it doesn't seem to be working on the computer or mobile devices. 

    I have included the error message below, see attached. 

    PowerApps Error.png
  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    OK @Anonymous ,

    That would have been good to see at the start - we are chasing in totally the wrong direction.

    Have a read of this article - this is nothing to do with PowerApps - it is an Exchange issue.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz 

    My apologies. I did add the screenshot to the post, titled: ScreenShot. I may not have made it clear enough.

    The screenshot was taken from my tablet during the use of the application. 

    From reading that article I think i may know what the issue is. Thanks for all your efforts.  

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard