Formatting email address for safe display

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Formatting email address for safe display

    Hi all, I want to change the way I display emails to the public for all the
    well know reasons. Email addresses in my database are like [email]tedsmith@hotmail.com[/email]
    What I want to do is remove the @hotmail.com part so the only thing that wil
    display is tedsmith. I'm not sure how to retrieve everything left of the @
    sign. Any help is appreciated. Brian

    brutas Guest

  2. Similar Questions and Discussions

    1. HELP !!! - Formatting email submissions
      I am looking to set up a page where our customers can submit requests for quotations on equipment we sell and I would like to be able populate the...
    2. Is it safe to install ATI display driver into Windows Vista beta2?
      Or should I just stick with the default driver? Windows Vista feels slow on an Athlon 64 3200+ (754) with 512 MB of RAM. Thank you in advance. :)...
    3. Email formatting?
      Can someone please tell me how to force some copy within an email being sent through a coldfusion script to start a new line; My code is as below,...
    4. Email or hyperlink formatting
      Hello, Could someone tell me what is considered proper formatting for email addresses and hyperlinked text? I know Microsoft products automatically...
    5. Getting email address.
      When my Users enter their information into my trouble call database, is there a way to get their email address automatically rather than them...
  3. #2

    Default Re: Formatting email address for safe display

    If you replace all non-aplphanumeric characters with thier HTML entites, the
    e-mail will display correctly, activate a "compose e-mail " window correctly,
    but still foil spam bots as they scrape the source code.


    <a
    href="mailto&#58;support&#64;somedomain&#46;com">s upport&#64;somedomain&#46;com<
    /a>

    cf_menace Guest

  4. #3

    Default Re: Formatting email address for safe display

    Use the list functions, and use the @ as the delimiter, instead of a comma.

    #listFirst("foo@blah.com", "@")#


    ---nimer


    "brutas" <webforumsuser@macromedia.com> wrote in message
    news:cvddon$b2$1@forums.macromedia.com...
    > Hi all, I want to change the way I display emails to the public for all
    > the
    > well know reasons. Email addresses in my database are like
    > [email]tedsmith@hotmail.com[/email]
    > What I want to do is remove the @hotmail.com part so the only thing that
    > wil
    > display is tedsmith. I'm not sure how to retrieve everything left of the
    > @
    > sign. Any help is appreciated. Brian
    >

    Mike Nimer Guest

  5. #4

    Default Re: Formatting email address for safe display

    Many of the best websites use a form to submit email to the company. This was a
    macromedia suggested method of avoiding spam. I admit that I'm new to CFML and
    can't give you the source but it is available if you do a search on this site I
    am sure. Good Luck

    Creasiamedia Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139