This example shows the use of the SendOutlookMailWithEmbeddedImages activity, developed by me, which makes it possible to send embedded images in the body of the email. / Este exemplo mostra o uso da atividade SendOutlookMailWithEmbeddedImages, desenvolvida por mim, que possibilita o envio de imagens embarcadas no corpo do email.
This activity is available for download here on the portal, click on the link below: / Esta atividade está disponível para download aqui no portal, clique no link abaixo:
Mail Activities
This activity works with Outlook 2013 and higher. / Esta atividade funciona com o Outlook 2013 ou superior.
For using the package you must download it and put it in your UiPath packages custom folder. See Adding Custom Feeds for details. Para usar o pacote, você deve baixá-lo e colocá-lo na pasta personalizada de pacotes do UiPath. Consulte Adding Custom Feeds para obter detalhes.
Ou baixe from UiPath Market Place (disponível em breve) usando a ferramenta Manage Packages. / Or download it from UiPath Market Place (available soon) using the Manage Packages tool.
In the Manage Packages tool, install and save the RpaDevs.Mail.Activities package. / No ferramente Manage Packages, instale e salve o pacote RpaDevs.Mail.Activities.

The package has the following activity: / O pacote possui a seguinte atividade:
- Send Outlook Mail With Embedded Images - Sends embedded images in the email body via Outlook. / Envia imagens embarcas no corpo de e-mail via Outlook.
Once the package is installed to your project, follow these steps: / Uma vez instalado o pacote ao seu projeto siga os seguintes passos:
1 - Add the activity to the workflow. / Adicione a atividade ao workflow.

2 - Set properties values. / Ajuste as propriedades:

2.1 - HTML Body - Enter the HTML text for the email body. The img src tag must contain its value in the following format: / Informe o HTML para o corpo do e-mail. A src tag img deve conter seu valor com o seguinte formato:
cid:XXXX, where XXXX is the CID for the image, in this example two images will be inserted, see: "<body> <img src = 'cid:img1'> <br> <img src = 'cid:img2'> < / body> "
cid:XXXX, onde XXXX é o CID para a imagem, neste exemplo serão inseridas duas imagens, veja: "<body><img src='cid:img1' ><br><img src='cid:img2' ></body>"

2.2 - EmbeddedCollection - Enter a dictionary where the keys are the CID for the image and the values are the file names. See the following example: / Informe um dicionário onde as chaves são o CID para a imagem e os valores são os nomes dos arquivos. Veja o seguinte exemplo:
New Dictionary(Of String, String)() From { {"img1", "C:\Temp\Image1.png"}, {"img2", "C:\Temp\Image2.png"} }

3 - The other properties are the same as the UiPath Send Email Activities. / As demais propriedades são a mesmas das Atividades de envio de Email do UiPath.