Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Send Email - using HTML file contents as body - images not coming through
Topic Summary:
Created On: 02/06/2014 03:33 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 02/06/2014 03:33 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

I have an HTML file that I want to use as my template for sending out an email, and at the bottom of it there is our company logo. This image displays just fine when I open it in a browser, but when I send an email using this html file as the file contents, it doesn't display in the received email. It has the placeholder for the image, but no image. I assume it's because the html code in the email is pointing to a file it can't find, so I'm not sure how to perhaps embed the image in the email, if possible.

I wasn't sure if this was more of an HTML question or something specific I need to set in AutoMate.

Thoughts?

James



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 02/07/2014 09:13 AM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hi James,

Have you added a check for the option "Is HTML" in the Send Email action?

Would it be possible for you to post your task for further review?

 Category Survey


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 02/07/2014 11:44 AM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Ricardo,

Yes, the HTML option is selected. Here's a basic version of what I have.

<AMSENDEMAIL FROM="%FromAddy%" TO="%ToAddy%" SUBJECT="Test Message Subject" BODYFILE="C:\EmailFile.html" HTML="yes" ATTACH="MyTestfile.txt" />

In the EmailFile.html, there's a link to a .jpg file which shows fine when viewed in a browser, but not when emailed. I'm essentially using this same template in another solution I developed (outside of AutoMate) and the graphic shows as expected in the email.

Everything else in the workflow I'm using works fine - the email is sent, the attachment is sent; it's just the graphic in the html file that doesn't show - but it does show the placeholder for it.

Thanks,

James



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 02/07/2014 02:26 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Just as a test, I updated the img src attribute to point to a UNC share on our network, and tried it again, and it worked. However when this is sent to someone externally, they won't have access to that. Not sure if the image can be embedded?



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 02/07/2014 02:43 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hi James,

Is the image publicly accessible?

 Category Survey


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 02/07/2014 02:47 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

It is not - it is on an internal server.



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 02/10/2014 01:56 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hi James,

It sounds as if your issue is due to the fact that the image is not public. Can you try testing with a public image?

 Category Survey


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 02/10/2014 01:59 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Yes, I have already tested this but I don't have a publicly accessible place at the moment.

I was hoping AutoMate could send an image in-line via email, using a CID property. I discovered that the other application I am using actually does this.

So given this, we can close this topic since AM does not provide this functionality.

Thanks,

James



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 08/12/2015 11:01 AM
User is offline View Users Profile Print this message

Author Icon
ChesterCortez
n00b (>6 posts)

Posts: 4
Joined: 07/02/2015

sorry to resurrect and old issue but i too am experiencing this same issue. i have tested using a public image and while it does come through, it comes through as an icon i have to right-click > download in order for it to show up (this also happens when i use our company logo). is there some work around to this?

i used this in place of our company logo as a test:

http://www.wiu.edu/academics/majors/business_and_technology/images/desktop_computer_512.png



 Category Survey
AutoMate BPA Server 9 version:
Windows version:
 08/12/2015 12:21 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Hi Chester,

I ended up using an embedded image in the HTML email instead of using a linked image. This has been working for us the past 2.5 years.

What I did was create my HTML template file, which referenced a local image file in the same directory. In the HTML template, I used the <img src="Name of file"> HTML code to insert the graphic. In the AutoMate email action, I used the HTML file as the body of the email.

Hope this helps,

James



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 08/12/2015 01:18 PM
User is offline View Users Profile Print this message

Author Icon
ChesterCortez
n00b (>6 posts)

Posts: 4
Joined: 07/02/2015

i'm not exactly clear on when you say you used an embedded image instead of a linked image. do you mean you actually took your picture and converted into binary?

http://www.greywyvern.com/code/php/binary2base64



 Category Survey
AutoMate BPA Server 9 version:
Windows version:
 08/12/2015 02:00 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Forgive me - it's been awhile since I looked at this. After reviewing what I did - I actually never did get it to work with AutoMate; no matter what I did I still had to right-click on the image in the email and right-click to download the image. I think this must be a limitation with AutoMate.

I have an external solution built in an Access database that sends out automated reports via email. It too uses an HTML template I built which has an embedded image, and I have no issues with the images appearing just fine - so I think it must be a limitation with the AutoMate Send Email task.

I haven't revisited this since upgrading to v10; my only suggestion at this point is to try is to use an external script (ie: VBScript) for sending emails which accepts parameters and try it that way.



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 08/12/2015 03:09 PM
User is offline View Users Profile Print this message

Author Icon
ChesterCortez
n00b (>6 posts)

Posts: 4
Joined: 07/02/2015

no problem. i appreciate your input. i got it to half-work by embedding the image into the html by using the image in binary form (there's free conversion tools out there where you can upload your image and get the binary output). when i recieve the email, the picture still shows up blank when i review it on my computer but it shows up ok on my iphone. it's possible that it's a security policy my company has. not sure though.



 Category Survey
AutoMate BPA Server 9 version:
Windows version:
 08/12/2015 04:18 PM
User is offline View Users Profile Print this message

Author Icon
Valentineo McGowan
HelpSystems

Posts: 766
Joined: 09/03/2013

Hello James and Chester,

The issue wherein you are unable to view images when the email is received is not a limitation by AutoMate per se, but instead in the email client being used.
For example Outlook has a setting where this option can be enabled or disabled.

Outlook 2010: Download Images Automatically
http://www.tech-recipes.com/rx...images-automatically/

I conducted two tests using the attached test AML task file and custom made HTML code referencing the public link image Chester provided previously.

1st test, the email body as HTML appeared normally with the image has a 'red X'. Prompting me to right-click to download and allow Outlook to display the image.

2nd test, I deselected the 'Don't download pictures automatically in HTML e-mail messages or RSS items' option under my Outlook settings.
The image now comes through as normal and is displayed without the need to right-click and download.

This was tested in v9054 and v10.3013

I hope this helps you both.

 Category Survey





-------------------------

Valentineo McGowan | Technical Consultant
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1 213.738.6966 | F: +1.213.738.7665


Edited: 08/12/2015 at 04:38 PM by Valentineo McGowan
 09/10/2015 01:03 PM
User is offline View Users Profile Print this message

Author Icon
RamiroPerez
Student (5-19 posts)

Posts: 6
Joined: 03/10/2014

Hi Guys.

i´m having this issue at my work. i need to send a html email with 2 embedded images, but Outlook needs to every single person that receive the email enable the automatic download 

i´ve tried to attach the image in the option . "Use file contents as body" but when i receive the  test email i only got this weird code instead the image:

 

example: 

‰PNG

 

IHDRè??YÔusRGB®ÎégAMA±?üa                pHYsÃÃÇo¨dÿ¥IDATx^ìý‡[Í·?ßßû{Ÿ÷ùÞ6À®ôŠiÒ;¨ŠE±wlØ{¥÷š?ªtø]³ƒs¯³IUÊ'ÇypÌ^síì&$™s7³³ÿ´nô«Óƒ³Oá‰;ÇÞ¶ÞÎ{Xï¾ß¼ÎCÊÀ"CÝqƒûþ;gP}7÷®ÑÙ—ºl)¬6 ³¯ÁŧÆ'âì½²ÌâŽÇ™—šv„˜×{JiXd¨;nÞò$ãbfqûÙûeÕ>‘ÔeSÇ-¥?UÄ}UcYëÞ²-øÑÑ«ÉÕ½Ç_6•íŠ§ ÑÙG?€Å‡uÇ.~Ô5Ÿxј\Ýóðè5격ã–ÒÀªâ¾z1:{·ýëZGßIµ}…'îPЄÓíÀÒ€wÊ…Ço'ÕöžPίµ­q¥î[?V÷ÕŠ‹¯ÉÉ«Ñußýœ[díyÊ˃bé»À脯`I`pò¦®™:è³÷˨³¾üv£Û>꾩—2Á*â¾18û7xUDß=uÿèSZù÷§éŒN^ú"Àw°Dpñ¥®™:è§iÒÊ¿ýhº{úAe`4uâÔ•ËÉ`q_u°¯€^ÍÛvæÞ?oøß4tõÒËjßóZw&îš|ü-¨k¦šºé«—^Ä7RÇ]x²°yû®©Ómš|°²?¸¯:Lë=õ›ßÄžÈzߺ·{2¹º÷EòYý–’– ÔASÇý")/¹ºgoÏdÖ{Û¸\Ý–@\–¶

?¸¯.èèœ>çå»âO?®Ž2Ž…vN&4ÞÌRãa^ï?cw`IÁθ¯÷¨ñ‰¸™ÿ8¡a ´k’ºïÓOjÊv'P‡ŽŽ{µq_EÐÇ»m?[?wøµ‚gñ?Caí“Q&úü?§—v¾H<Cô˜–Ô5Sý"átFi'uÙQÆIê¾ã›†®¼¨ñ                §n€¸¯èƒMŸ|Ý–

 

can you please give me a hand on this?

 

thanks, Ramiro

 



 Category Survey
AutoMate BPA Server 9 version: 9.0.4
Windows version: Windows 7
 09/15/2015 02:58 PM
User is offline View Users Profile Print this message

Author Icon
Valentineo McGowan
HelpSystems

Posts: 766
Joined: 09/03/2013

Hello Ramiro,

Would you be so kind as to export the Workflow in question from the SMC, *.zip it up and attach it to this forum thread if possible so we may review and attempt to reproduce internally?
Keep in mind it will be viewed publicly so please remove any sensitive information from the workflow/task in question.

 Category Survey


-------------------------

Valentineo McGowan | Technical Consultant
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1 213.738.6966 | F: +1.213.738.7665
 10/30/2017 03:12 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

I would like to follow-up on this again. I am trying to send an email in HTML using the 'Use file content(s) as body' option and the image in the email does not come across - shows as a red X. The image itself will appear normally if I open the html file in a browser. The image in the HTML code is embedded as Base64.

I am using an older application that has no problem sending these emails with the image in the email, but I am having difficulty getting AM to do it. The 'other' application is one that we are working to convert to AM, ASAP.

Is there any new information on this?



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 10/31/2017 11:48 AM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello James,

We recommend trying your task in version 10 or 11 as they will have the latest version of the action.

Version 905 is the latest version of 9 which has unfortunately not been updated.

 Category Survey


-------------------------

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 10/31/2017 11:58 AM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Alex - we're already using 10.7. I suppose at the time I was last active on this thread we were still using v9.

 



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 11/01/2017 10:48 AM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi James,

I was able to send a message that could be viewed using base64 image. I used the link below to convert a publicly available image url into base64.
https://www.askapache.com/online-tools/base64-image-converter/

I have attached the send email step with the html code for the image used, the HelpSystems logo on this forum.

 Category Survey
AutoMate BPA Server 9 version:
Windows version:



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------

Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 11/01/2017 10:53 AM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Hi Justin,

Yes I have already tried that method; however it seems that the base64 method does not work for many email clients including Outlook so it is looking more like I cannot use that method...



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
 11/02/2017 04:30 PM
User is offline View Users Profile Print this message

Author Icon
Devin Cannon
HelpSystems

Posts: 398
Joined: 03/17/2016

Hi James,

It sounds like this isn't an issue with AutoMate then?  Do you need any further help with this?



 Category Survey
AutoMate BPA Server 9 version:
Windows version:


-------------------------

Devin Cannon | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 11/06/2017 09:27 AM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Devin, I do not think this is an AM issue; thanks for your input though, I appreciate it.

James



 Category Survey
AutoMate BPA Server 9 version: 9.0.5
Windows version: Windows Server 2008 R2


-------------------------
<html />
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1631 guests browsing this forum, which makes a total of 1631 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog