Question
Infosys
IN
Last activity: 3 Aug 2017 8:23 EDT
How to embed images in outlook body using microsoftoutlookmail component in Openspan
Hi,
Please let me know how to embed images using microsoftoutlookmail component in Openspan.
Sample screenshot attached.
Able to embed images using .net code but I want to know using microsoftoutlookmail control.
Note: Images are in local machine physical drive
-
Like (0)
Sam mk Ashish Sengar -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
It doesn't look like the ContentID is exposed when using automation components. You most likely could add the ContentID in a script, but at this point that is what you are doing.
Pegasystems Inc.
US
When you are constructing the Body text create it using Html then change the BodyFormat to olFormatHTML. This works the same way as .NET.
Infosys
IN
Hi Jeffbadger,
I tried as attached in the screen shot. I have image in my local drive and prepared body using html table format and added image using img attribute. I am able to see image if I sent mail to myself. If I forward the mail to someone, they are not able to see the image. (It will display as below)
Please help.
Pegasystems Inc.
US
Here is how you would do it in C#:
https://www.emailarchitect.net/easendmail/kb/csharp.aspx?cat=8
So, basically you would add the image as an attachment, assign it a content ID and then reference that in your Html. You should follow those steps in your automation.
Infosys
IN
Hi Jeffbadger,
I did using .net code only but I want know is it possible to send using only automation components?
Accepted Solution
Pegasystems Inc.
US
It doesn't look like the ContentID is exposed when using automation components. You most likely could add the ContentID in a script, but at this point that is what you are doing.
Infosys
IN
Yes, I added content id and then sending mail using .net code. No automation mail components are used in this case.
Mphasis
IN
Can you please share the sample code and a screen-shot of the automation