width and height of the embedded image in the Outlook app from power automate - outlook

I am using PowerAutomation to send emails with embedded images returned from sharepoint lists.
The image appears in the Outlook app, but I have no control over its width and height. 
i tried it in HTML mail body in power automate :
<img src='data:image/jpeg;base64,{output}' width="245" height="200" />
and
<img src='data:image/jpeg;base64,{output}' style="width:245px;height:200px" />
However, the image returns to its original size in Outlook apps, but everything is fine in Outlook Web. 
how to handle this issue on the Outlook app.

Related

Hyperlink detection in Outlook

I am developing an Outlook web addins that involves extracting all hyperlinks from the mail message. I am currently doing it by getting all a tag elements.
var htmlParser = new DOMParser().parseFromString(asyncResult.value, "text/html");
var urls = htmlParser.getElementsByTagName("a");
However, I found out that Outlook for PC displays text as a hyperlink as long as it contains www., even though the text is not meant to be a hyperlink. For example, I tried sending myself an email with www.example.com as the content and I ensured that it is not a hyperlink when I sent it out.
In Outlook on the web, the text is indeed not a hyperlink.
But then in Outlook for PC, the text was displayed as a hyperlink automatically. Since I did not send it out as a hyperlink, it does not have an a tag and hence my addin could not extract this "hyperlink". Is there a way to also extract these "hyperlinks" in a mail message?
You could use the getEntitiesByType API to get any URL entities identified in the mail body. A sample API call is:
Office.context.mailbox.item.getEntitiesByType(Office.MailboxEnums.EntityType.Url)
You can use this Outlook add-in - Mail add-in for a read scenario which finds and parses all links in the body of an email. Here's the documentation/sample # https://github.com/OfficeDev/Outlook-Add-in-LinkRevealer

div element visibility in outlook mails

I'm trying to send an html email through vb code . For this i've a template and the body is replaced using code. In the content of the email there are 3 images but one particular image is not to be displayed in one of the emails. So the image is put in the div tag and using style as <div name="divA" style="display: none;"> display is switched off. Code runs and mails is sent successfully. When a mail having this line of code in body is seen in outlook the image is as expected invisible. Problem arises when I forward this mail (using forward feature of outlook) to my friend the invisible image shows up out of nowhere ! Question: How to make the image invisible so that it stays invisible upon forwarding as well ?
Try this code, it's a little more bulletproof in addressing various things that email clients do / don't support:
<div style="display:none;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;">
Your <img> tag
</div>
This is the code I've been using to hide preview text for the last few years, which I haven't seen appear when emails are forwarded. Never tried it with an image.

Is there a way to embed an image directly in an Email template in Dynamics CRM 2015?

In CRM 2015 (on premise), I know you can insert images in emails/email templates by creating an HTML page with images that are hosted on the web and copy/pasting the HTML in the email/email template. The problem I have with that is customers who use Outlook that receive the email see big X's at first and Outlook prompts them to download images.
Is there a way to embed the images directly in the email? Or a third party tool that would allow that?
I tried converting the images to base64 and entering the code directly into the Body field in the TemplateBase table of the CRM database, but the application just converts it to the tag <img> with nothing else in the sent emails.

Images not popping up in Outlook when sending newsletter

I send out newsletters for the company I work for. Since graphic artists have to create images, I usually end up testing my newsletters with temporary images that are from older newsletters. But whenever I overwrite the image in my ftp folder with the new one, it will not appear in Dreamweaver. Worst of all, outlook users do not see the image. They will either see the old image or see the red X.
As for me, I use thunderbird and I see the correct the image. The image also correctly appears on the website.
I have tried clearing the cache of dreamweaver, by deleting this file to no avail.:
Delete C:\Documents and Settings{username}\Application
Data\Adobe\Dreamweaver
CS6\en_US\Configuration\WinFileCache-xxxxxxxx.dat
This is an example of the code I use
<img border="0" src="http://www.******.com/***/***/2013/gpd_banner_fr.jpg" style="display:block;" alt="BANNIÈRE" />
Any tips?
If you put the URL http://www.******.com/***/***/2013/gpd_banner_fr.jpg into the browser, does it exist?
If so, now in Outlook, scroll to the bottom of your email and right click > view source. What URL is showing in your email code?
Assuming it is different, it has something to do with how you are sending it. Are you using an email service provider? How are you uploading the images?

How to open compose page of outlook after clicking on an image

any one tel me how to open outlook message box to send mail by clicking on an image. The compose page should open with email address To. Plz any one help me.
You can use:
<img alt="hello" scr="abc.jpg" onclick="location.href = 'mailto:abc#abc.com'" />

Resources