@Anonymous
(*smack to head*)
I don't know why it didn't trigger my brain properly when I saw it...you do have your images as base64 encoded images in your list.
The formulas I've provided will NOT work with that.
The problem is that you need to get the base64 encoded image back into a binary form in order to attach it.
So...there are two ways:
1) Skip the attachments and instead embed the images in your html of the email. If the purpose is for receivers of the email to be able to store the images again from the attachment, then this will not be practical as they would need to right click on all the embedded images and do a save as.
But, if your need is to only send an email with pictures in it, then embedding is actually preferred over attaching in this case.
2) Convert the images back to binary.
There is no function in PowerApps to do this, but you can hack one together.
If you create a Gallery (let's call is galImages) and set the Items property to the following:
Filter(QuizCollection;Title = ViewReportFromGallery.ColumnToFilter)
Put an Image control in the Gallery (let's call it Image1), and set the Image property of Image1 to ThisItem.Photo
Now, Change the formula of your email sending to the following:
Office365Outlook.SendEmailV2(
Concat(MyPeople; Mail & ";");
TextEmailSubject1.Text;
TextEmailMessage1.Text & HtmlTable.HtmlText;
{Attachment:
ForAll(galImages.AllItems;
{Name: Title & ".png";
ContentBytes: Image1.Image;
}
);
Importance:"Normal"
}
);;
Reset(TextEmailSubject1);;
Reset(TextEmailMessage1);;
Clear(MyPeople)
This should send the base64 encoded images converted back to binary as an attachment(s).
By the way, galImages does not need to be visible, so you can just use it as a helper control in this case.