Email Address Encoder

Imagemaps, custom links, and other places can use the Mailto Encoder, but you need to follow a few special steps.

  • Use the Custom Encoder
    • Step 1: Enter your email address
    • Step 2: You can skip this step if you like
    • Step 3: Don't make a link
    • Step 4: Use "normal"
    • Step 5: Use the javascript encoding and pick the double-escaped encoding or the substitution encoding
    • Step 6: Encode
  • Copy the generated Javascript code into whatever you need it (notepad, your web page editor, etc.). Remove some lines from the top and bottom. It should look similar to one of these.

    Double-Escaped

    MaIlMe=new Array();
    MaIlMe[0]="165163145162045064060150157163164056156";
    MaIlMe[1]="141155145";
    OutString="";for(i=0;i<MaIlMe.length;i++){
    for(j=0;j<MaIlMe[i].length;j+=3){
    OutString+=eval("\"\\"+MaIlMe[i].slice(j,j+3)+"\"");
    }}document.write(unescape(OutString));
    

    Substitution

    ML="e.hsnrtmau@o";
    MI="9305:2;3614870";
    OT="";
    for(j=0;j<MI.length;j++){
    OT+=ML.charAt(MI.charCodeAt(j)-48);
    }document.write(OT);
    
  • Alter the last line and remove the document.write portion. Add a "return" line after your modified last line. Put this in a function. The script should now look like one of these.

    Double-Escaped

    function SendMeEmail()
    {
       MaIlMe=new Array();
       MaIlMe[0]="165163145162045064060150157163164056156";
       MaIlMe[1]="141155145";
       OutString="";for(i=0;i<MaIlMe.length;i++){
       for(j=0;j<MaIlMe[i].length;j+=3){
       OutString+=eval("\"\\"+MaIlMe[i].slice(j,j+3)+"\"");
       }}
       location.href = "mailto:" + unescape(OutString);
       return false;
    }
    

    Substitution

    function SendMeEmail()
    {
       ML="e.hsnrtmau@o";
       MI="9305:2;3614870";
       OT="";
       for(j=0;j<MI.length;j++){
       OT+=ML.charAt(MI.charCodeAt(j)-48);
       }
       location.href = "mailto:" + OT;
       return false;
    }
    
  • Now, test it with your imagemap or a regular link:
    <a href="" onclick="return SendMeEmail()">Test Link</a>
    
  • That should work for you. If not, I would love to know.
From the garden of your dreams many things can grow. Tyler Akins! <>
Contact Me - Legal Info