Hi @Santiago01Br_
Go with below .Net script:
Please first test it then replaces all hardcoded values with dynamic variables

Output:

Flow code(just copy and paste it in PAD):
Scripting.RunDotNetScript Imports: $''' System.Net
System.Net.Mail''' Language: System.DotNetActionLanguageType.CSharp Script: $'''// Sender and recipient email addresses
string senderEmail = \"deenu@microsoft.com\";
string recipientEmail = \"deenu@gmail.com\";
// Create a new MailMessage
MailMessage mail = new MailMessage(senderEmail, recipientEmail);
mail.Subject = \"Embedded Image in Email\";
// Read image files from local system and attach them to the email
Attachment image1 = new Attachment(\"C:\\\\Boot\\\\Email.png\");
image1.ContentId = \"image1\";
mail.Attachments.Add(image1);
// Create HTML content with CID URLs referencing the attached images
string htmlBody = @\"
<html>
<body>
<h2>Embedded Images</h2>
<p>This email contains embedded images:</p>
<img src=\'cid:image1\' alt=\'Image 1\'>
</body>
</html>\";
mail.IsBodyHtml = true;
mail.Body = htmlBody;
// Configure SMTP client and send email
SmtpClient smtpClient = new SmtpClient(\"smtp.office365.com\", 587);
smtpClient.Credentials = new NetworkCredential(\"deenu@microsoft.com\", \"Password\");
smtpClient.EnableSsl = true;
smtpClient.Send(mail);
// Dispose attachments and client
image1.Dispose();
smtpClient.Dispose();'''
Thanks,
Deenuji Loganathan 👩💻
Power Automate Desktop Community Champion 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀