View Full Version : Email Links

10-10-2006, 09:38 PM
I have links to people's individual emails on a website I built, but I keep getting an error message when I test them. When I try clicking on the links in IE, it says that the default email server could not be located. And in FF, it says nothing. Which means it's probably mucking up in other browsers too...Why is this happening? Did I link it wrong?

You can have a look at the page:

10-10-2006, 11:27 PM
Your code is set up right. Your operating system however is not. mailto is a function sent to the OS making it using your default email application, which it seems you don't have :-/ .. maybe someone more into OS' can help you out.

Most other people will have no problem using your website to send email. The better solution is to use a server side script instead:

10-11-2006, 02:04 PM
Hummm...I was not aware of that! So other people can use it, but I can't? Do I leave the existing code and add this other code?

10-11-2006, 03:03 PM
You can do both if you want to, have an email link and a form.

10-11-2006, 04:37 PM

Most people have AOL, Outlook, or Thunderbird on their computer, which in turn is identified as the default email program. I clicked on the "Sales Manager" link and it pulled up my Thunderbird. So, essentially it works...if you have a default email program. Since you don't have one set up on your computer you can see first hand what is happening when a user clicks on the link and they don't have one either. I would do what Dom said and set up a form page as well. Dom as well as others and I would recommend using .php for your form that way you don't have to worry about a default email program. I usually suggest having the "contact us" or the email links go to a form as well (For example your "Sales Manager" link would go straight to a form) This way you never have to worry about a default mail program and users don't feel like they are giving away their email address - which most don't like to do causing you to loose feedback, help questions, clients, sales, or more.

There is a tutorial on .php forms on the home page., but here is the link as well: http://www.dreamweaverclub.com/dreamweaver-php-form.php