How to paste image into email body?

ok, perfect

When we dont want to use the img src url directly.

we can do
grafik
ImageAsB64String =

Convert.ToBase64String(File.ReadAllBytes(myLocalResource.LocalPath))

OR

with HttpClient Download

myHttpClient = new HttpClient()
grafik
myBytes | Byte Array =

myHttpClient.GetByteArrayAsync(strURL).Result

ImageAsB64String2 =
Convert.ToBase64String(myBytes)

Then we configure a HTML template as described here:
grafik

E.g.:

<P><IMG src="data:image/png;base64,{{YourMapVariable}}"></P>
1 Like