Hello all,
I have created an app for entering data into OneDrive and Excel. The app works good. I also have added an email which is so close to working but I need to add an image in the HTML Body of the email. I have to rely on the Mail connector (no attachment choice) because I cannot use Outlook due to the exchange server error and cannot migrate. Here is what I have so far. I use the AddMediaWithImage to get the picture. For the AddMediaButton I have this to collect and then I think convert to 64bit OnSelect.
ClearCollect(ClickedPhoto,{Name:"Picture",ContentBytes:UploadedImage1.Image, '@odata,type':""});Set(ClickedPhotoVar,JSON(ClickedPhoto,JSONFormat.IncludeBinaryData ));Set(ClickedPhoto64,Mid(ClickedPhotoVar,24,Len(ClickedPhotoVar)-24))
I then add it into the HTML like this.
"<p><font size='6' color='red'><b>**** Do Not Reply To This Email ****</b></font><br><br><font size='3' color='black'><b>Please review findings</b></font><br><font size='6' color='black'><b>"&ddDepartment.Selected.Result&" Audit Findings</b></font><br><br><font size='3' color='black'><b>Auditor: </b>"&ddAuditor.Selected.Auditor&"</font><br><br><font size='3' color='black'><b>Area: </b>"&ddArea.Selected.Result&"</font><br><br><font size='3' color='red'><b>Pass/Fail: </b>"&ddPass.Selected.'Pass/Fail'&"</font><br><br><font size='3' color='black'><b>Issue Found: </b>"&tiIssue.Text&"</font><br><br><font size='3' color='black'><b>Person Notified: </b>"&ddNotify.Selected.Result&"</font><br><br><font size='3' color='black'><b>Picture: </b></font>,img src=ClickedPhoto64><br><br><font size='3' color='black'><b>Additonal Findings: </b>"&tiAdditonal.Text&"</Font><br><br><font size='3' color='black'><b>Safety Findings: </b>"&tiSafety.Text&"</Font></p>"
But this remains a broken image in the email. Anybody have any ideas on how I can make this work? I really need the image with the email.