post

HTML code to open an email window with subject + body copy

Click on this link to see what the code below can do for you. Add it to your posts when you want email responses. Enjoy this little find.

<a href=”mailto:joe%40joehageonline%2ecom?subject=Thanks for the HTML code&body=Dearest Joe Hage post reader, %0A%0AJust hit SEND to let me know you stopped by and found this useful.%0A%0AAdd a personal note below if you like.%0A%0AThanks!%0A%0AJoe Hage”> this link </a>

Of course, just change the words “this link” to whatever you want the hyperlink to say. “This link” could also be an image.

Comments

  1. John Greer says:

    You should not add your actual email address, since spam-bots troll for this. You should translate it into symbolic language. I can show you how later.

  2. Joe Hage says:

    Hmmm. Interesting. Does that mean you don’t recommend using mailto: at all?

    Very intrigued. If it’s a nugget, write better code in the comments. If it’s longer, you’re welcome to guest post about it.

  3. John Greer says:

    Simple bots look for the at-sign (@) and/or the dot (.) when they troll for email addresses. A quick workaround for that is to use the HTML symbolic representation of %40 and %2E. Just as your example already used symbolics to simulate END-OF-LINE and ENTER, this simulates (or in our case, hides) the use of the at-sign and dot.

    Your example above would only slightly change.

    A snippet of code at the begining of the example above is:

       href=”mailto:joe@joehageonline.com?subject=

    I suggest we change that to:


       href=”mailto:joe%40joehageonline%2ecom?subject=

    (btw – you can quickly verify your code by hovering over the link and looking in the message area of the status bar. IE translates it, then shows it to you.)

    You can find other cool HTML codes at http://www.ascii.cl/htmlcodes.htm

  4. Joe Hage says:

    John, this is great. I went in and changed the post to incorporate your code so future readers can just pick up the code, even if they don’t scroll down to these comments.

    Thanks!

  5. Carol says:

    I am not a technical person, but have a technical question. Challenge you guys on this one. We use Constant Contact to send out an e-newsletter daily. The newer versions of MS Outlook won’t show the animated gifs, plus in Yahoo and other email programs there is some distortion from the original. SO, I want to use either the web browser page or a link to the e-newletter on our website. However, is there HTML code that will open the link when the email opens — not open the email and then click a link? You will be my hero if you can pull this one off.

  6. Joe Hage says:

    Carol, this is very difficult.

    I am changing my email provider to AWeber because I believe I’ll have a better chance of having images served to my subscribers. There is no amount of “Safe Sender” that will make images render if every email you send out comes from a different virtual address.

    Send a note to the Two Hour Blogger and see if he can help you. http://twohourblogger.com

  7. Carol says:

    I really appreciate your answer — even though it was not the answer I was hoping for. Do you freelance? We are a small firm and anticipate some upcoming programming and design needs. We are in the Cleveland, OH area.

  8. Joe Hage says:

    Thank you, Carol. Yes, let’s talk.

  9. Kelly says:

    Hi Joe, I’m trying to use this on a navbar where I need to insert a url….do you know if this is possible? Thanks so much!! Kelly

  10. Joe Hage says:

    Kelly, sorry for the delayed response. I do not completely understand your question.

    Are you asking if there is a link that would open up a URL in a new window?

Speak Your Mind

*