Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Email Creation Help

Status
Not open for further replies.

smurfer

Programmer
Jun 8, 2001
57
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top