Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

6914708

macrumors 6502
Original poster
Jul 14, 2003
304
0
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.
 
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.
 
reh said:
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.

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.
 
Thanks a bunch! Is there anyway to do it in dreamweaver without having to go into the code as well?
 
miniConvert said:
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!

That worked great. Thanks guys!
 
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
 
dpaanlka said:
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
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.
 
reh said:
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.

Could you please explain how I would do that? So that I can use that on a website I'm maintaining?
 
Gnorn said:
Could you please explain how I would do that? So that I can use that on a website I'm maintaining?
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...
 

Attachments

  • code.jpg
    code.jpg
    17.8 KB · Views: 134
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.