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 / Office365Outlook SendE...
Power Apps
Unanswered

Office365Outlook SendEmail - Undeliverable

(0) ShareShare
ReportReport
Posted on by 265

HI all,

 

I'm creating a simple apps to send email, using command like below:

 

Office365Outlook.SendEmail(txtEmail.Text,
"Consent email", "Dear, " & txtName.Text, {
 Attachments:Table(
 {Name:"peninput.jpg", ContentBytes:Signature.Image, '@odata.type':""}
 )
})

 

 

txtEmail is a textbox input, which in this email, I have attachment, from a TextInput control.

However everytime I run this apps, I received Undeliverable email from Microsoft Outlook like this :

Voltes_0-1601408893925.png

 

Anything's wrong with my command ? The connection to Outlook (datasource) with the correct login has been established, and no error while checking. Kindly advice.

Thanks,

 

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Voltes ,

    you can use like below.

    Office365Outlook.SendEmailV2(Text("XXXX@gmail.com"),"TestSubject","Test body");

    Thanks, 

  • Voltes Profile Picture
    265 on at

    Hi Vijay,

     

    No, it's still produced the same error, after adding Text(....) surrounding the txtEmail.text.

    Thanks,

  • Vijay Tailor Profile Picture
    2,961 on at
    Please try with V2 Like below>
    Office365Outlook.SendEmailV2
  • Voltes Profile Picture
    265 on at

    Yes, I'm using V2 now, with the exact command, just adding Text (..) in it.

     

    Is this error related because I'm using PowerApps Trial Plan ?

    So my account used for create this Apps is the one with format : xxxx@mydomain.onmicrosoft.com

     

    The error mentioned about "recipient's email provider rejected it", but the recipient is gmail, why it is reject my email from PowerApps.

     

    Thanks

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @Voltes ,

    I am Also Using the Trial account.
    see my Mail ID below - 
    msvijaydp@dpmsd.onmicrosoft.com

    can you do one thing, Login to office 365 Admin Portal and Add a new User for your tenant. Once User Setup is done Open Newly Setup Email in different browsers and try to send mail.

    thanks

  • Voltes Profile Picture
    265 on at

    Hi Vijay,

     

    I'm sorry, I'm not sure I understand what did you really mean. I did go to portal.office365.com, however I don;t know where to create new user over there.

     

    Btw, checked in my email, for that specific account id, the Sent folder is correct, which means the email from PowerApps is sent, with all the correct recipient addresses, and correct body also my attachment is correct. So the sending part is succeeded, only the recipient is reject it. I tried to send to hotmail or yahoo, all is same.

     

    Thanks.

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Voltes ,

    Just for your reference.
    You can create a new User,  Follow the yellow Highlighted. Go to the URL  - https://admin.microsoft.com/Adminportal/Home?source=applauncher#/users (For Create New User)

    VijayTailor_0-1601412542293.png

    Thanks

     

  • Voltes Profile Picture
    265 on at

    Hi Vijay,

     

    Interesting. It works. So I created new user, put as Admin as well, and add all the subscription as the 1st user. Open other browser and login with it. Import my Apps, it has info of allowing this new user to use Outlook365 in the apps. Then it works.

     

    I wonder what is the cause and explanation of it.

    Much appreciated.

    Thanks

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Voltes 

    Maybe some restrictions on trial. if till that time we not logged in on Admin Portal.

    Its gr8 , your Issue is resolved.

    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."

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard