![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
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 |
![]() |
![]()
|
![]() |
||||||||||
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
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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?
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
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
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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?
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
Hi James,
Is the image publicly accessible?
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
It is not - it is on an internal server.
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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?
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
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
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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
|
||||||||||
|
||||||||||
![]() |
||||||||||
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
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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
|
||||||||||
|
||||||||||
![]() |
||||||||||
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.
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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.
|
||||||||||
|
||||||||||
![]() |
||||||||||
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.
------------------------- ![]() 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 |
||||||||||
|
||||||||||
![]() |
||||||||||
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
|
||||||||||
|
||||||||||
![]() |
||||||||||
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.
------------------------- ![]() Valentineo McGowan | Technical Consultant AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1 213.738.6966 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
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?
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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.
------------------------- ![]() Alex Escalante | Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Alex - we're already using 10.7. I suppose at the time I was last active on this thread we were still using v9.
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
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.
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 |
||||||||||
|
||||||||||
![]() |
||||||||||
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...
------------------------- <html /> |
||||||||||
|
||||||||||
![]() |
||||||||||
Hi James, It sounds like this isn't an issue with AutoMate then? Do you need any further help with this?
------------------------- ![]() Devin Cannon | Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Devin, I do not think this is an AM issue; thanks for your input though, I appreciate it. James
------------------------- <html /> |
||||||||||
|
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.