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?


Reply With Quote
You're welcome!

Bookmarks