Forum Moderators: open

Message Too Old, No Replies

Box around HTML code in an email

         

jchexpress

7:30 pm on Aug 20, 2007 (gmt 0)

10+ Year Member



I was wondering if someone could tell me how to make sure that when I send an email for a link request to another site and include the HTML code for an actual link to my site, that the link does not show up in their email (only the HTML code so they can just copy and paste the HTML code with no actual links).

Thanks in advance.

Drag_Racer

1:37 pm on Aug 21, 2007 (gmt 0)

10+ Year Member



To make sure the mail reader properly renders the code is not alway that simple as some will render html and other will show just the source code as some email readers are text only.

If you know for sure they will display html, then you can change all the < and > to &lt; and &gt;. Another posibility is to send a graphical display of the code. Also, many times a link is provided to view the code on the senders web site to ensure the proper rendering.

The first thing I would do is go to my favorite search engine and search for 'html emails' or something along those lines and do some real research on this before you make any final steps.

rocknbil

8:13 pm on Aug 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard jchexpress, using entities for the carats as suggested will work best, change out all < for &lt; and > for &gt; This will allow the user to copy the line and paste it, when pasted it will resolve back to < and >.

Be sure you are generating an html email by specifying "HTML in email" in your email client OR by adding the following to your mail headers if it's a command-line mailing program:

MIME-Version: 1.0
Content-Type: text/html; charset=US-ASCII

The charset will vary with region.

jchexpress

10:46 pm on Aug 21, 2007 (gmt 0)

10+ Year Member



Thank you both for the reply. I googled as many keywords as I could think of on this subject and could not come up with the right answers. I will try what you both have informed me.

Thanks again,

Jason