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 Apps
Answered

Send image by mail

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I want to generate Matrix code using Following API : 

 

http://datamatrix.kaywa.com/img.php?s=8&d=458

 

Then send by mail to user. 

I can display the image on power App:

 

 

Set(ImgQR;"http://datamatrix.kaywa.com/img.php?s=8&d=458");;

 

Then I create a new item 'image' with value 'ImgQR' and i see the images I want.

 

The problem come when I want to send the image by mail

 

 

 

ClearCollect(ImageQR;{Name: "QRcode.jpg"; ContentBytes: ImgQR; '@odata.type':""});;
Office365Outlook.SendEmail(
 User().Email;
 "mailpower";
 "ok";
 {
 Attachments: ImageQR;
 IsHtml: true
 }
);;

 

 

I got an error message, Something like "Something went wrong  please check your internet connexion"

 

Could it be because the API is http and not https?

 

The thing is , I can send image well when i'm using another APi (https://chart.googleapis.com/chart?cht=qr&chl=458&chs=100x100 but this one generate QR code not data matrix).

 

I think my problem is coming from API. To solve it, I think I should be able to save image as a real image or byte content then send it by mail… but i dont know how to do this

Categories:
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    The attachment only support Blob files, since your image is from the API, so it is only a hyperlink, I suggest you embed the QR in HTML body, please try this:

    Office365Outlook.SendEmailV2(
     "ABC@microsoft.com",
     "Subject",
     "Email Body.<img src=""http://datamatrix.kaywa.com/img.php?s=8&d=458"" alt=""Testing"" width=""100"" height=""100"">"
    )

    Snipaste_2020-05-22_17-54-55.png

    Hope this helps.

    Sik

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard