Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder westmatrix99's Avatar
    Join Date
    Dec 2006
    Location
    South Africa
    Posts
    307
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Email encrypt or encode?

    I have looked at a few utilities to convert ASCII characters to Hexadecimal or Unicode for email addresses and I am not getting the results I need.
    Can anybody help me with making my email addresses safer on the web?

    I know of javascript:
    Code:
    <script language="JavaScript"><!--
    var name = "name";
    var domain = "domain.com";
    document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
    document.write(name + '@' + domain + '</a>');
     // --></script>
    Creating an image of the address but I don't think doing that for over 1000 emails is fun or practical.
    I am a bit or very lost???
    Thanks for you support!

  • #2
    Regular Coder
    Join Date
    Oct 2005
    Location
    Right Here
    Posts
    654
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Write a script that will generate the images for you. Im guessing your 1000 emails are in a database? Just pull them, use the image functions from php and gd and BAMMMM, create image and add to the database row where the email is stored. Then display the image of the email, and use the text email to email them.

    Good Luck!

  • #3
    Regular Coder westmatrix99's Avatar
    Join Date
    Dec 2006
    Location
    South Africa
    Posts
    307
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Yes they are in a database MySQL and I use this to display them currently:

    Code:
    <a href="makecontact.php?id=email@address&teid=Marketing Research">Contact...</a>
    Ok will play around with a script to make the images, but no clue where to start just yet.

    Cheers
    Thanks for you support!

  • #4
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    try urlencode
    <a href="makecontact.php?id=emailaddress&teid=Marketing%20Research">Contact...</a>
    im pretty sure the @ changes aswell but im not sure what to
    a space is %20 though

  • #5
    Regular Coder westmatrix99's Avatar
    Join Date
    Dec 2006
    Location
    South Africa
    Posts
    307
    Thanks
    12
    Thanked 0 Times in 0 Posts
    http://www.php.net/function.urlencode

    I have looked at the above and am a bit stuck, no I have not started it yet but where do I start:

    The email is in the database already as it is used as the username as well.
    Then the data looks like this:

    PHP Code:
    <a href="makecontact.php?id=<?php echo $row_rsbooks['StuEmail']; ?>&teid=<?php echo $row_rsbooks['BkTitle']; ?>"><font color="#009900" size="2">Contact...</font></a>
    The makecontact page has this:
    PHP Code:
    <a href="mailto:<?php echo $row_rsstu['StuEmail']; ?>"><?php echo $row_rsstu['StuEmail']; ?></a>

    Cheers
    West
    Thanks for you support!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •