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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to attach a file to OUTLOOK.APPLICATION object

Status
Not open for further replies.

amigo02

Programmer
Feb 19, 2003
109
0
0
I have following code and works fine

var outlookApp = new ActiveXObject("Outlook.Application");
var nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject="CUSTOMER SERVICE";
mailItem.To = document.frmM.txtEmail.value;
mailItem.HTMLBody = objXMLHTTP.responseText;
mailItem.display (0);

but I would like to send the html as an attachment instead of using "mailItem.HTMLBody = objXMLHTTP.responseText"

Any idea how to do it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top