I am developing a web-based CRM application where users can click a hyperlink to open an email template which is populated with the customer's email address and name.
The attached code opens an Outlook template ("Testy"), however I am struggling to figure out how to populate the template with the customer's email and name.
My web server does not support VB, so I need to do this in Java.
Any help would be greatly appreciated.
// Variable Definitions
var outlookApp = null;
var nameSpace = null;
var mailFolder = null;
var mailItem = null;
var tempDoc = null;
outlookApp = new ActiveXObject("Outlook.Application");
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add(whatform);
// act on any error that you get
To use form buttons:<br>
<input type=button value="Form A" NAME="OutlookOpen1" OnClick="OpenOutlookDoc('IPM.Note.Testy')"><br><br>
To use text links:<br>
<!-- change the information between the single quotes to match your custom forms class Name like IPM.Note.CustomForm - you can have different links to different forms, provided you specify a different class Name for each link //-->