SitePoint Sponsor

User Tag List

Results 1 to 15 of 15
  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question e-mail hyperlink

    I have been trying to insert an e-mail hyperlink onto my page it rarely works though is there anything I'm doing wrong? The link is below:


    <a href= “mailto: guimaraes@bodybuilders”>Joe Jones</a>

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aren't you forgetting the ".com" ?
    Cross browser css bugs

    Dan Schulz you will be missed

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if these are errors that occurred when you posted your code snippet, but...
    • There shouldn't be a space after 'href='.
    • You mustn't use “curly” quotation marks around attribute values. Use straight (") quotes only.
    • As SoulScratch said, the email address seems incomplete since there's no TLD.


    Try,
    Code HTML4Strict:
    <a href="mailto:guimaraes@bodybuilders.com">Joe Jones</a>
    (If that's the right domain name.)
    Birnam wood is come to Dunsinane

  4. #4
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the reply I will give this a try and get back to you if it worked.

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,786
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You'll know when it is working because your email account will fill with spam once all the spambots find that address.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  6. #6
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AutisticCuckoo View Post
    Not sure if these are errors that occurred when you posted your code snippet, but...
    • There shouldn't be a space after 'href='.
    • You mustn't use “curly” quotation marks around attribute values. Use straight (") quotes only.
    • As SoulScratch said, the email address seems incomplete since there's no TLD.


    Try,
    Code HTML4Strict:
    <a href="mailto:guimaraes@bodybuilders.com">Joe Jones</a>
    (If that's the right domain name.)

    Code HTML4Strict:
    <a href="mailto:guimaraes@bodybuilders" target="_blank">
    Your email address</a>


    Try doing a a EMAIL Link this way. I included a "URL_Scrambler". I've been doing this alot and it's been working.

    Hmm, I was talking to Dan-Schulz Via Instant messanger asking him if I could use a span class as a href link to try to prevent the link showing up. Well you can't.


    I was going to try something like this.
    Code HTML4Strict:
    <span class="mailto:sitepoint.removethis@.removethissitepoint.com"></span>


    So, dont try that solution trying to prevent SPAM.


    There are way's of doing this technique using a regular
    Code HTML4Strict:
    <a href="mailto:sitepoint.removethis@.removethissitepoint.com">Link</a>
    and having Javascript to hide the actual Link.
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/


  7. #7
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/


  8. #8
    Non-Member
    Join Date
    Oct 2008
    Location
    Banned
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Before you post that working code to the web I would suggest setting up an email JUST for that contact form. You don't want your regular email flooded with spam. I made that mistake and everytime I open up my email I have around 300 spam messages.

  9. #9
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JsD2K View Post
    Before you post that working code to the web I would suggest setting up an email JUST for that contact form. You don't want your regular email flooded with spam. I made that mistake and everytime I open up my email I have around 300 spam messages.
    Im using sitepoint's URL not mine?
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/


  10. #10
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Think he was referring to the original poster?

    Kind of hard to follow this thread for some reason.

  11. #11
    Non-Member
    Join Date
    Oct 2008
    Location
    Banned
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I was talking about the original poster. Thank you for realizing that..

  12. #12
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,271
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    It doesn't guarantee anything, but there are more bots than not who can't read ascii text. So since nobody at my company gets enough spam to set up a server-side solution with a contact form, I've been just using manual ascii letters for emails posted on a contact page. You only see the ascii when you View Source.

    The browser interprets them fine. I first saw it on one of Anne van Kesteren's sites and thought it was pretty cool. It might could possibly cut down on some random spam, though if lots of people did this then of course lots of bot writers would just build bots to read them (just as there are more javscript-enabled bots out there now).

  13. #13
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there's also some clever anti-spam things you can do with javascript if i recall correctly, Since when you view the source(how bots crawl) theres no email to be found. but once rendered in firefox/ie, its shown as a full email address.

  14. #14
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,271
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    Except if the user doesn't have Javascript... nothing extra is rendered. I browser regularly using NoScript and one thing it's great for is seeing if a web site can function as a web site (not an application) by itself or if it's crippled and needs scripting to function.

    I hate seeing that "You need to enable Javascript to contact me" stuff on web pages. Though I understand their frustration at spam, but the rule of the web is not everyone can or will have Javascript and the sub-rule is some with Javascript have user agents who implement it incorrectly anyway.

    Though I guess it does depend on your target audience.

  15. #15
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree, Wouldnt do it if i was cnn.com or something.


    People need to stay on their toes with the web, if we keep building sites for 640x480... 8bit color computers from 1994, Theyll never upgrade.

    I think java is widespread enough that it shouldn't be a problem, Specially if your niche is anything other than "What to feed your new pet kangaroo".


Bookmarks

Posting Permissions

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