This is a follow-up to question:
I have an Outlook template assigned the value "whatform" in the code below. In addition to setting the To, Subject, and Body, I would like to pass a value from the web page to a user defined field named "pig" in the template.
VB appears to use something like mailItem.UserProperties.pi
g = "bacon"; but this syntax doesn't work in Java.
Appreciate any help!!
outlookApp = new ActiveXObject("Outlook.Application");
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add(whatform);
mailItem.To = "Ragnar64@some.net";
mailItem.Subject = "eMail for you";
mailItem.Body = "eMail for you.";
// act on any error that you get