cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RameshMukka
Post Prodigy
Post Prodigy

Unable to embed an image within email using the action Send an Email (V2)

 How do I embed an image within an email sent using the Send an email (v2) action? I have gone through several discussions here finding the solution to use html <img src="" /> tag. I also read this functionality has been later removed. Has anyone recently able to do it? What was your approach?

2 ACCEPTED SOLUTIONS

Accepted Solutions
efialttes
Super User
Super User

@RameshMukka 

You mean the solution described in this post is not working anymore?

https://www.sjlewis.com/2019/09/17/microsoft-flow-how-to-embed-an-image-in-an-email/

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

RobElliott
Super User
Super User

@RameshMukka the way I do it is as follows. I upload the image to the Site Assets library on SharePoint then have the following in my flow:
addImage.png

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

View solution in original post

13 REPLIES 13
efialttes
Super User
Super User

@RameshMukka 

You mean the solution described in this post is not working anymore?

https://www.sjlewis.com/2019/09/17/microsoft-flow-how-to-embed-an-image-in-an-email/

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



RobElliott
Super User
Super User

@RameshMukka the way I do it is as follows. I upload the image to the Site Assets library on SharePoint then have the following in my flow:
addImage.png

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

@efialttes Thank you so much. Didnt find such detailed steps in my research. This worked like a charm now. I could still feel Microsoft can up with much easier solution to this.

@RobElliott What is the expression you used in your flow at <img src="" />? This seems to be different one. Can we also adjust the size of the image to a bigger one?

@RameshMukka see the comment on the action in my screenshot which gives the expression. A larger width will give a bigger image  depending on the original image size of course.

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

@RameshMukka

Sorry for the off-topic, but please note you can accept more than one answer as solution, even from different community members. I I mean, @RobElliott 's suggestion is a great approach

Thanx for your help making this community great!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@RobElliott I have been trying to change the size of the image using different pixels but nothing is being effective. My image size not at all changing in my email. Do you know why?

 

pixel.png

Sorry to ask, but i tried to follow your steps and when the html tag notice <img> my html button gets disabled. Might know why?

nagestiada_0-1593755581471.png

 

What is DataURi and what should be the code for it???? No one mentioned this in here!

@mah65 Insert the html img tag <img src="" />

 

In between the quotes place your cursor and then on the dynamic expressions window start typing dataUri...something like below

 

dataUri1.JPG

 

Then pass the "File Content" as an argument to the dataUri function.

dataUri2.JPG

 

Over all your dataUri function should resemble like 

dataUri(body('Get_file_content_using_path_2'))
 
Thanks,
Ramesh
Rhodesia2020
New Member

Good afternoon all,

 

I have tried everything (ie base64, Initializing the variable and saved my photos in SharePoint and One Drive) but nothing works.  Please help!  I received this via email the last time I tried:

>/���z�^�
�^L֟�%��nՎ�#\#4Ū��'����Bdy��Z�u�zǞ�W�;�˖a��hM�|����.V,���m�0������h���­{��M�S‑��H��s������^'{�����w��Y(/&��=^ݵT���m����@齗Vm�
~̻�؏�i ���}�p��W��!g�R����p����j��������t$~���*R��֖4�~Z[��vжx��D���e�6'�n=�_6��_�Yo��M\ �G�^z�] �}�(T�d��wG���"��Z��g�ٚ�몷q���
­;�.���\�?A¬F[�j�X�u�w�yd
��P47ڿ����E�r<�zL��}��b �ӻY���m�*�F(��Ɗh ��]��[��K�[�A��{0­�[졊�����ms9'� Œ��rQ�m���_[� ?�C��=�������+�s��R�ҮG�G�>X��Sr�o�ʣ )?Fn�P����d�+�k�u�e$��x���ht�$��Ge��1x�����ց��j7ɐ�-!k�x����}W���gw���My�)���1l��CgE(NޗEJ"
)2�)D������M;<eR���Ξ5k�V�P�n�<����l�|�v�g�d̨)�Q?���5�ZC&��ZS ��[1]ai�i���]E�?��W�A6�e�g۬}*A��P�A�,�r1��%UZy�J)�pE�4E�Q�p?k="" ��^��yP`F[�RK��;��~�="" b������wh="" ��*��&�K��1���W���?����gݛ�Hv�V="l���o��Ϥ���Y�Zٯ(��{5���Ҁ��Y����闲���8­�-Y�۲�i��9pB����黽�E�G�N���­��4�_W����e������h�����&����2
��l�͟�鞖�O�������F8" �`���S�k�k��,�#?�="" ٯ��V׾t���J��-="" ��FQm��<נE�����ft���g�L�̦��;����U�<|n����6n��������6��<����{t����VƢ�="" �&t@x��jO��{�@J><B{���K="�$�Zs���f&�0�H9" `�J�uE��8���26a�ض�]��Ի�xw�J�����T0B�H^)y��P7����+qBK�y߯ey77�������-="" ��k2޴6Q�F�h���P�4k���I.�:V^:,="">_`�O�) -��D-B�q�=2��;(�Z��‑�%�<�x|�Oo�X�����5�����>l��RL�M����2��W1bEk)��c‑�I&���,� �u���[�obM �-4�ʲ�kd .�<����q7���&4�0��B�J��H
<���ت� /C�+j�q���&���^�(��}�Ɩ�>qBK�(M*� M���Qx��v��N�8�%��0 ��Y� Z�*NhңTM���a?y�]�ȋg�P���Вk��X��O��G�7A­��n�Ȫ}����<yBBj� �k���(?@��r8���^ii�+�\4����L�H��j��1�R:tWS�#�="" �-J="" ���F�����C�+E�����f���Zm�fy��z�\�0="" �ɠ�cW����5���d="">Y�����7�6����f �ݔ���< ��E3�gź�����ʅ�+^.�P�\*� ͶT���c�7��$�!����;����
@��cXºz��ƫ3�VFcGi�!��9x„N�����~�m�Lr� =Iy|"�o���`fg�{��O�^��"�‑Z�
 ev�x^i�� ʊ{hɤ�����F��d���ۂ��ܾ�KFh�E{n���؏�{򓌂"@���/r/�S�?�pH������ Fh��\���b>­O�F��Y��e����}�‑4T�qBd��B�Zo��56A{
|��L��|���l��yJ*�T �LA����X��' {�~%��� Wq9G�X�j �|���B��TF㡣���3����pB��%7��L?$ă��+�0�rh�v�YP��d� ��V$� Nh�k2v�U͉�n�e����H9B�.��kT��R8$����YsB�Є����$Z!|�C�g��7��P�c����4[?����R��Z�7��xM�)���W�h�0������ޕW:�{UoB�<��"4�2Y� �s��mRR�G:f��� �g3�D�6�2��-%��W��
�}BП̑r�%��y�,�N�R$�?�[�5Bӱ�cd

@Rhodesia2020 1) if your image is stored in SharePoint add a SharePoint action get file content using path and select the file. 2) in the toolbar at the top of the email body click the code view </> button. You will now need to use html tags in the email body. For the image the html is  <img src="expression"></img> where the expression in the expression tab of the dynamic content box needs to be dataUri(body('Get_file_content_using_path'))

 

An example of one of my live flows that adds our company logo to an email is shown below:

 

addImage3.png

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

@RobElliott Still not working (see below) 😭

Rhodesia2020_0-1654206605903.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,689)