Transpose Email Plugin

This plugin is no longer being developed or supported. It is recommended that you discontinue the use of this plugin and find an alternative, if applicable.


Putting your email address in a blog post is an open invitation to spammers. There are several methods to prevent this, like using a contact form or obfuscating your email.

Transpose Email plugin allows you to use JavaScript to create an encoded link. Clicking that link will trigger the user’s email client to open and create an email.

You have the option to set the default subject line to whatever you want.


  • Easy to use and edit.
  • Doesn’t require any external program to encrypt your email.
  • Function can be called muliple times on the same page, just by passing different email addresses.
  • Uses the user’s default email program like Outlook Express to send the email. So, will work even your host has disabled the mail() function of php as well as SMTP.
  • Doesn’t require reencrypting of your email address in case it changes. All you need to do is update the arguments to the function.



  1. Download Transpose Email Plugin.
  2. Extract the contents of to wp-content/plugins/ folder.
  3. Activate the Plugin.
  4. Read the Customizing section.

The JavaScript Function:


  • userid – The part that comes before the @ in your email address e.g. my email address is [email protected], so I enter it as me
  • domain – The part that comes after the @ in your email address e.g. my email address is [email protected], so I enter it as
  • subject – The subject line of the email you will receive.


Example: <a href="javascript:Transpose_Email('user','','About your site') ">Email Me</a>

Ofcourse, change and user to that of your email address. Change the subject line if you want to.


  • 1.3.1 – Minor JS fixes
  • 1.3
    • Better support for blogs which have the `wp-content` folder moved from the original folder
    • Added support for blank subject line
  • 1.2.1 – Uploaded the plugin on
  • 1.2 – Code remains same. Minor corrections to Readme file
  • 1.1 – Moved the javascript function to an external .js file. Now the plugin works even when your blog is served as application/xhtml+xml on browsers that support it, e.g Firefox
  • 1.0 – Release


All files and their contents are licensed under the GNU General Public License (GPL).


Download Transpose Email v1.3.1
Number of downloads: 14,023
Rating: 0/5
Page on WP Extend

(Visited 11,077 times, 1 visits today)

32 thoughts on “Transpose Email Plugin”

  1. Pingback: Ajay - On the Road called Life! » Transpose Email Plugin

  2. Pingback:   WordPress Plugin: Transpose Email by Blogging Pro

  3. Pingback: WordPress Italy » Blog Archive » Plugin WordPress: Transpose Email

  4. The \”Email Me\” link example above should open my email client, correct? I’m using Thunderbird and clicking the link in Firefox doesn’t trigger Tbird to open a blank email. IF I view this page in IE though, it works.

    Good idea for a plugin though! When it’s Mozilla-friendly, it will find its way onto a few of my sites fo’ sho’.

  5. Pingback: Ajay - On the Road called Life! » Firefox, Javascript and application/xhtml

  6. Hello Sam,

    Thank you for pointing this out to me. After a lot of trial and error I finally figured out the solution to the problem.

    I was serving my blog as application/xhtml as opposed to text/html

    Firefox, unlike Opera and IE, recognizes application/xhtml.
    As result, it kept throwing up a javascript error for undefined function.

    A temporary work-around is to serve the blog as text/html.
    I hope I can find a permanent solution to this problem.

    You will see that the above example works in Firefox now.
    Thanks once again for pointing this out.

  7. Pingback: Ajay - On the Road called Life! » Transpose Email Plugin v1.1 Released

  8. Pingback: Ajay - On the Road called Life! » WordPress Plugin Competition

  9. A man’s gotta do what a man’s gotta do ๐Ÿ˜‰

    Anyway, it seemed rather ironical that my own plugin wasn’t working on my own site!

  10. Thanks for a helpful plugin!

    I modified the code here in a couple of ways Ajay — I hope you don’t mind of course!

    * I removed the \”subject line\” part of the javascript code, as I prefer not to have this in my link (and so I use the code on my page slightly differently of course to allow for no subject line specification).

    Also, the readme in the download zip file has references to \”Bad Behavior\” plugin (line 24 of readme file, and also line 33 for more information).

    Also too, the download is v1.1, but here on your site you mention 1.2 — is there a later version not available yet to download?

    I put the details on my blog:

    One other thing: I needed to create a folder in my WP plugins folder called \”ald-transpose-email\” to hold the external javascript file, as that his how it is referenced in the php plugin file. (I could have altered the php file to remove this folder reference as an alternative to creating the folder!)

    I hope the readme comments and extra folder info help for your next version!

    Kind regards from Melbourne downunder.

  11. Pingback: Ajay - On the Road called Life! » Transpose Email Plugin v1.2 Released

  12. I have updated the Readme and released v1.2

    No changes in the code, but just the readme for now.

    Additionally, I don’t mind you modifying the code as long as you credit me for my work ๐Ÿ™‚

  13. AkeB0N0 Says:

    Can you add into javascript status bar options!!! We can change status bar messages.

    Are you saying as part of this plugin or as another plugin?

  14. Pingback: Recent WordPress Plugins | John Hesch

  15. Pingback: Build Up To Something » Some Plugins for WordPress: I want to give them a try

  16. Pingback: Blogging according to Ajay » Protecting your Blog from Spam

  17. There are CSS methods available to obfuscate your email address. The one in my link uses CSS to shrink a generated random-text logo down giving the illusion of normal text. I spiced it up by adding colour shading options and a dozen fonts to choose from. The more obfuscation methods in use, the less chance the email harvesters will decode them all.

  18. Have checked it out and looks quite good.

    However, everytime the user needs to change the email address it will require him to recode it.

    Using this plugin, he just needs to change little to change the email address he wants to use.

  19. Hmmm….I think I like it, except that I think it could be done about as well without requireing javascript….here’s my idea:

    Write it instead as a filter/function/etc. which is processed by PHP and takes as an input the same information, but generates a mailto: link that uses entity encoding for the characters. The last time I checked, entity encoded email addresses weren’t harvested by spammers either.

  20. Well, there are other plugins that tackle spam harvesting by encoding links.

    This plugin isn’t made for automatic protection but only when you actually feel the need of inserting your email address directly.

    I can’t be sure, but there may be a time that entity encoded email addresses will be decoded, unless you can come with your very own code.

  21. Wowee, thanks! I have just spent the better part of an hour trying to code my old javascript cloak-the-email-address script in my wordpress site, without any success at all. This is so much easier! Thanks for your work!

  22. Pingback: » Blog Archive » something.wicked.this.way.comes

  23. I just installed this plugin but does not work with webmail like Gmail. When I click my own email link, it will callout my Outlook Express instead of Gmail New Message.

    Normally if I use mailto it can turn to Gmail. Is there any work around?


  24. Hi
    Don’t know if it’s the new version of WordPress or the new version of TinyMCE that’s removing the link for TransposeEmail in visual-mode … Do you know anything about this? It’s working as long as I’m in text-mod in the wordpress editor, bot not in visual mode…

Comments are closed.