Click to See Complete Forum and Search --> : Sending keystrokes


Lisae
07-14-2003, 01:43 PM
I'm creating a form using mailTo:. I am using radio buttons to select who it is sent to. I am using the radio buttons to change the mailTo: address.

<SCRIPT>

// Used to display and load email address
var address="";

// Called by onClick in radio buttons
function setAddress(addr)
{
address=addr;
document.email.display.value=address;
}

function setCarbon(cc)
{
carbon=addr;
document.email.display.value=carbon;
}

// Called by View Mail Window button
function doMail()
{
window.location="mailto:"+address+"?subject=Laptop Reservation Request&body=Name: "+document.email.name.value+"%0APhone: "+document.email.phone.value+"%0ADepartment: "+document.email.department.value+"%0ABuilding: "+document.email.building.value+"%0AUserID: "+document.email.userid.value+"%0A%0AManager: "+document.email.manager.value+"%0AManager's Phone: "+document.email.ManagerPhone.value+"%0A%0APickup Date: "+document.email.pickup.value+"%0AReturn Date: "+document.email.returndate.value+"%0A%0AComments: "+document.email.comment.value;
}

// Called by Reset The Form button
function resetForm()
{
address="";
}

</SCRIPT>

<form name="email" method="post">

<input type="radio" name="radiobutton" onClick="setAddress('firstaddress@here.com')">Test - Lisa

This works, but they still have to press the Send button and then go through the spell check in Outlook. My question is: Is there a way to make it send automatically and skip the spellcheck?

Khalid Ali
07-14-2003, 04:55 PM
I am sure they could turnn off spell check in outlook...the other solution will be to use some server side languae..such as jsp,php or asp

Padrill
07-15-2003, 07:07 AM
Client side email sending skipping outlook:

<FORM action="mailto:valid email address" method="post">
<INPUT type="submit" value="Send Email" name="button"></FORM>


Make sure submit button has a name otherwise doesn't work.

-------------

:cool: You're welcome!