I have been using SAS EG4, for my reporting (automation). Though automation part is done I would like to put my company logo also in the back ground of my mail as a water mark...Can somebody help..?
here is the mailing code I write to send HTML output through "ThunderBird"(my mail box)..
COMPUTE 'Program Level Activity'n;
if 'Program Level Activity'n="Total member base (as on &MONTHH)" then do;
CALL DEFINE(_ROW_,"STYLE","STYLE=[FOREGROUND=WHITE BACKGROUND=MAROON FONT_WEIGHT=BOLD]");
I have tried style custom in HTML...by defining proc template...That is generating Background images in my HTML output..But the same output when I write it, in the mailing body, images are not showing up...
This previous forum posting http://support.sas.com/forums/thread.jspa?messageID=27609毙
tells how to post code so that symbols like < and > in the code do not interfere with the forum posting mechanism. It also explains how to use the [pre]and [/pre] tags around your code and output in order to maintain indenting and spacing.
Although your forum posting is quite hard to read, I do understand the general sense of your question. Let's talk about ODS HTML without the complication of email or Outlook. With regular ODS HTML files created by Base SAS and meant to be opened with a browser, any images that you use MUST be accessible to the browser (or rendering application) -- when the HTML file is opened.
So this means that images, any images, are NOT embedded in the HTML file. And so, if your template or preimage style attribute would refer to an image like this:
Then ODS would build an <IMG> tag with this SRC=attribute:
<img alt="...." src="c:\temp\kermit.jpg">
The above IMG tag would work on a local machine (because the image was physically stored in c:\temp; however, if the HTML file that contained the IMG tag was ever sent to anyone, unless they ALSO had the same image in c:\temp, the rendering of the HTML file would show a red 'X' instead of an image because the image would not be located when the HTML file was RENDERED.
That's how ODS and HTML work outside the context of Microsoft Outlook. You said that
I have tried style custom in HTML...by defining proc
template...That is generating Background images in my
HTML output..But the same output when I write it, in
the mailing body, images are not showing up...
So that means you are having some success with your images when you send the mail as an attachment. However, I am not surprised that your images do not show up in your E-mail body when you try to put the HTML report -- with image into the body of your email. When I use Microsoft Outlook to put an image into an email when I just create an email manually -- no using ODS -- let's say I want to use kermit.jpg as a background for my mail message, I have to follow this click path in Outlook to insert the image:
Options --> Page Color --> Fill Effects --> Picture Tab --> Select Picture
ODS output created by a style template would never be able to touch the pulldown menus and tabs in Microsoft Outlook. For more help with using the email features of SAS and ODS, you might want to search support.sas.com for the many Tech Support notes and previous forum postings on this topic. You may need to work with Tech Support to verify that you can even get an image into the body of an Outlook email when using ODS HTML and the EMAIL engine.