Contributor.. Darren1 Contributor..
Contributor..
617 views

Send HTML Email with embedded graphic

Is is possible to send an html email with an embedded graphic using the operation Library/Operations/Email/Send Mail?  If it is possible does anyone have an example they can provide?  I assume I would need to use the headers input but the description for it is a little confusing because it says the the default rowDelimiter is a ":" and the default columnDelimiter is "\n".  However, the example uses the opposite so I assume that description has the default values mixed up.  Additionally, the example includes the header "message-type:Multiple Part".  I can't find any reference to this format.  I believe it should be something like "Content-Type: multipart/related" or Content-Type: multipart/mixed.  It seems like Content-Type: multipart/mixed might be hard coded so is it even possible to set a different content type?  I believe I need to do something like this:
Content-Type: multipart/related     (probably need to use a boundry as well but not sure how to)
Content-Type: image/jpeg; name="pic.jpg"
Content-ID: <pic.203480.102384587@sfhsldf.s82>
Content-Disposition: inline; filename="pic.jpg"

Then within the html refer to the image like this:
<img src="cid:pic.203480.102384587@sfhsldf.s82" alt="picture">

Thanks,

Darren

Labels (1)
0 Likes
7 Replies
Acclaimed Contributor.. BGroot Acclaimed Contributor..
Acclaimed Contributor..

Re: Send HTML Email with embedded graphic

Hi,

If this forum is not helping with addressing your question, then you might want to try our Operations Orchestration Support Customer Forum . This forum is only accessible for members that have a valid support contract (SAID) in their passport profile. This forum is also monitored by support engineers so they might be able to assist you with your question

I see that you have access to this forum, so feel free to access it and submit your question.

If you have any questions then please let me know.

Greetings,

Bill

Micro Focus Software Support

The views expressed in my contributions are my own and do not necessarily reflect the views and strategy of Micro Focus.

If you find this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Kvark Absent Member.
Absent Member.

Re: Send HTML Email with embedded graphic

Base-64 data is legal in an img tag and I believe your question is how to properly insert such an image tag.

You can use an online tool or a few lines of code to generate the base 64 string.

The syntax to source the image from inline data is:

<img src="data&colon;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot">

http://en.wikipedia.org/wiki/Data_URI_scheme

=-=-=-=-=-=-=-=-=-=-=-=--=-=
In wine wisdom!
In the beer force!
In water, the microbes...
0 Likes
levend-sayar Super Contributor.
Super Contributor.

Re: Send HTML Email with embedded graphic

Hi,

I am also trying to embed an image to HTML email by using Lİbrary/Oparations/Email/Send Mail flow. I have check OO related documents but could not find an example or explanations how to embed image to an email. 

I can not define more than one Content-Type to a flow as an input.

Also I have added 

<img src="data&colon;image/png;base64,base64encodedimagestring" alt="Red dot">

but this did not work also.

 

Could you please help me how can I achieve this and point a document which may help?

 

PS : My OO version is 10.21.0001

 Regards

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Send HTML Email with embedded graphic

Try to check this video. https://youtu.be/oaj9vc_X4OI?list=PLWiCC0hzgG_wkdSmwAOLT39NCh4KJCaVj 

Let me know if it doesn't meet the needs.

Hope it helps,

Andrei Vasile Truta
0 Likes
levend-sayar Super Contributor.
Super Contributor.

Re: Send HTML Email with embedded graphic

Thanks again, posting the same answer for anyone who read this post :

 

I have tried in your way. But it did not work with the email client which is not on the same machine with OO studio. In this case path is being sent instead of image.

If I write <img src="http ://dcvta86296.i.lithium.com/html/assets/mf_logo_blue_small.png"> , it works when I select download pictures from e-mail client.

 

But what I want is sending these kind of images as attachment, then showing using Content-ID .

 

Regards

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Send HTML Email with embedded graphic

For the attachments part were you using the attachments input of the operation?

Andrei Vasile Truta
0 Likes
levend-sayar Super Contributor.
Super Contributor.

Re: Send HTML Email with embedded graphic

Yes, I was attaching image using attachments input

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.