Hi @dandandsan ,
Do you want to send email with an attachment that data is html text by not using flow?
Firstly, if you only use powerapps, I'm afraid it's not supported to generate an attachment from html text and send it in email.
Powerapps does not support the function of generating attachments.
Actually, I do not know why you want to convert html text to an attachment.
You could directly send email that body is the html text directly.
Try this formula:
Office365Outlook.SendEmailV2("email address,"My Car Stock",HtmlText1.HtmlText,{IsHtml:true})
Then email body will display in html format.
Secondly, if you insist in sending email with attachments, then you need to use flow to generate the attachment.
After you generate an attachment, you could use this formula to send email with attachment:
Office365Outlook.SendEmailV2("email address,"My Car Stock","Attachments",
{Attachments:AddColumns(the attchment file, "Name", DisplayName, "ContentBytes", Value, "@odata.type", "")})
Best regards,