I'm using this code which is not working for me. I added a Button the assign the code as javascript in the click action but nothing happens.
var subject = RIFN.rawValue + "-" + CurrentDate.rawValue;
var myDoc = event.target;
try {
myDoc.mailDoc({
bUI: false,
cTo: 'test@acme.com',
cSubject: subject,
cSubmitAs: "PDF"
});
} catch (e) {
// exception handling...
}