Hi,
Please go through this link.
Embed Image in Outlook Email
To send random image you can follow the below steps.
- Directory.getFiles(“Local Folder path”) to get all image files and convert String to list.
- Generate a random number as randomNum between 0 and number of files in local directory.
- Get the file path at index from the list using list.Item(randomNum)
- Embed your image in email present at filePath.