Log in

View Full Version : HTML web page email problem



droppinplates84
12-05-2009, 03:02 AM
Here is my situation:
I am creating a webpage for my School and ive learned how to use the link tags, but when I click on a link to email (<a href="mailto:Email@ISP.com">), outlook express always starts up. now I dont want my School's website visitors to go through configuring outlook or whatever their default mailclient is, any suggestions on an alternative? Please take me step by step to help me if you decide to as I am still learning and this site is kind of for a final grade. here is the basic link code that I have that wants to direct me to outlook express.

[code]<ul type="square"><b><h3>
<li><a href="final2.htm">Dorms<a/></li>
<li><a href="final3.htm">Staff</a></li>
<li><a href="CareerServices.htm">Career Services</a></li>
<li><a href="final4.htm">Event Pics</a></li>
<li><a href="final5.htm">Student Senate</a></li>
<li><a href="Quiz7.htm">BITS Form</a></li>
<li><a href="BITSTeam.htm">BITS Team</a></li>
<li><a href="mailto:MYEMAIL@yahoo.com">Email us</a><?P?> </li>
</ul>[code]

traq
12-05-2009, 03:15 AM
mailto: uses the default email client of whatever computer is clicking on it, usually Outlook in the case of a Windows system. There's no way to change this except visiting every user's home and reprogramming their computers with a different email client.

The alternative is using web-based email, and it really is worth it. You'll need a server-side language configured to do this (for example, PHP with mail() enabled). Basically, you build a contact form and set the action="" attribute to your email script. A quick search for "free PHP email script" should turn up some examples.

BTW, what is this:



<li><a href="mailto:MYEMAIL@yahoo.com">Email us</a><?P?> </li>

?