Direct link to email

Discussion in 'Web Design and Development' started by kjdenison, May 13, 2006.

  1. kjdenison macrumors 6502

    Joined:
    Jul 14, 2003
    Location:
    Chicago, IL
    #1
    How do I link a button(.gif image) so that it automatically opens the users email up with my address in it? I'm sure this is super simple, but I'm not sure how to do it. I'm using Dreamweaver 8.
     
  2. reh macrumors 6502a

    Joined:
    Oct 24, 2003
    Location:
    Arkansas
    #2
    Code:
    <a href="mailto:user@domain.com"><img src="somepic.gif"></a>
    Edit: Didn't see the dreamweaver comment, but that's how you do it by hand.
     
  3. Gnorn macrumors regular

    Joined:
    May 7, 2006
    Location:
    The Tavern, Thornwood
    #3
    You can even put ?subject=Here goes my subject right after the user@domain.com (no spaces between .com and ?) thingy to give the e-mail a pre-determinded subject.
     
  4. kjdenison thread starter macrumors 6502

    Joined:
    Jul 14, 2003
    Location:
    Chicago, IL
    #4
    Thanks a bunch! Is there anyway to do it in dreamweaver without having to go into the code as well?
     
  5. miniConvert macrumors 68040

    miniConvert

    Joined:
    Mar 4, 2006
    Location:
    Kent, UK - the 'Garden of England'.
    #5
    In where you'd normally type in your hyperlink I think you literally just put in mailto:whatever@whatever instead of http://whatever

    Damn Dreamweaver for being all the way downstairs, or I'd check!
     
  6. kjdenison thread starter macrumors 6502

    Joined:
    Jul 14, 2003
    Location:
    Chicago, IL
    #6
    That worked great. Thanks guys!
     
  7. dpaanlka macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #7
    you really aught to try not to do that, unless the email account is set up specifically to receive email about that web site... otherwise you're asking for boatloads of spam
     
  8. reh macrumors 6502a

    Joined:
    Oct 24, 2003
    Location:
    Arkansas
    #8
    I've found email addresses on websites to draw very little spam now-a-days. Especially if you encode it a bit with character codes. Regardless, it's best to post an alias instead of your primary email address.
     
  9. kjdenison thread starter macrumors 6502

    Joined:
    Jul 14, 2003
    Location:
    Chicago, IL
    #9
    good point. I didn't really think about about that
     
  10. Gnorn macrumors regular

    Joined:
    May 7, 2006
    Location:
    The Tavern, Thornwood
    #10
    Could you please explain how I would do that? So that I can use that on a website I'm maintaining?
     
  11. reh macrumors 6502a

    Joined:
    Oct 24, 2003
    Location:
    Arkansas
    #11
    I use a program called MacASCII Display.

    Download, install and launch MacASCII Display and push the "Blocks" button.
    Type your email link text in the top window (mailto:name@domain.com).
    Select "Show Decimal and Hex as HTML" from the Edit menu.
    Copy the contents of the second window (Decimal ASCII codes) and paste it into your website (be sure to remove the extra spaces and line breaks). It should look something like this...
     

    Attached Files:

  12. Gnorn macrumors regular

    Joined:
    May 7, 2006
    Location:
    The Tavern, Thornwood

Share This Page