Sunday, August 2, 2009

How can I used mailto to have the email client recognize a string as HTML?

I have a HTML page that I am trying to email to someone, but the page is all marked up with HTML tags. I would like to use the mailTo command to send the page to my email client and have the email client recognize/parse the HTML tags to produce a readable email. How do I do this?

How can I used mailto to have the email client recognize a string as HTML?
The answer to your question depends on just what sort of HTML tags you have, and what email client you are using, because there are variations out there. But here's a way to do it, if the HTML is valid HTML that a browser can display with no problems, and if you are using Outlook Express. Any email client will be similar, but the details would be different.





First, select "Create Mail".





At the bottom of the compose window, click the "Source" tab.





Use Wordpad or Notepad or a similar text editor to open the file containing the HTML code you want to send. Select the code, not including the HTML, HEAD or BODY tags, and copy it to your clipboard.





Go back to the window where you selected "Source", and paste the code in, in the proper place.





It's possible some of the code belongs in the HEAD section, and the rest belongs in the BODY section. I trust you can place the code correctly.





Select the "Preview" tab to make sure the result is what you wanted.





You will need to select the "Edit" tab in order to send the message.
Reply:omg


No comments:

Post a Comment