You should be aware that HTML email is not generally a good idea: it is not universally supported (probably because most spam appears in this format), it can be dangerous, and free email servers (such as Hotmail and Yahoo) are notoriously bad at portraying them (I believe that Hotmail cuts off the head section entirely). Do a google search on "html emails" and I'm sure you will get many hits.
That said, how are you sending it?
--Chessbot
"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
Yes it's possible, but depends on the mail client used to view the mail. Since you cannot control this in most cases it is at least sensible to consider other options.
For CSS to work in an HTML mail you will need to include the CSS in the document rather than linking to it. This will work in most modern mail clients (Lotus Notes is a notable exception).
The pros and cons of HTML emails have been discussed here many times. A quick forum search (or a google search as Chessbot suggests) will help alot.
Basically certain things work certain things dont. Keep styles in header and the use of inline text formating works well. this seems to work in hotmail, outlook, yahoo
Basically what im trying to achieve is a template that i can use from outlook ( header / footer) with a gap in the middle to write in.
Its working fine (create mail, insert text from file)but when the emails come into other peoples inbox the two images used come in as attachments.
Is there a way to stop this from happening. Ive noted that html emails that i have received in the past which include images etc, do not include the images as attachments.
Basically stationery is a HTML file with onpage/inline CSS.
To set it up create a HTML page with the look you want, set the image as background to the body and use margins to control the message typing area.
If you use <body background="file://localpath to image"> outlook will embed the image when creating the message
Chris.
Indifference will be the downfall of mankind, but who cares?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.