Can anyone please help with this, I am trying to use a j-script within an asp page to create an instance of outlook mail from within a web page. All of our users are using outlook, however I have been able to get the mail to work the first time, however the second use of it cause "The server threw an exception" error. My javascript is as follows:
function jsGenerateEmail()
{
var strBody = "\n" +"Customer Name:\t "
var oOutlook = new ActiveXObject("Outlook.Application"
var objMail = oOutlook.CreateItem(0);
objMail.Subject = "test subject"
objMail.Body = strBody;
objMail.Display(true);
delete oOutlook;
delete objMail;
}
Thanks,
SM
function jsGenerateEmail()
{
var strBody = "\n" +"Customer Name:\t "
var oOutlook = new ActiveXObject("Outlook.Application"
var objMail = oOutlook.CreateItem(0);
objMail.Subject = "test subject"
objMail.Body = strBody;
objMail.Display(true);
delete oOutlook;
delete objMail;
}
Thanks,
SM