How do I write JavaScript in Button Properties Actions tab to extract one page and e-mail it with subject line?

I have the following script but it is not working:
var oNewDoc = this.extractPages({nStart:15});
this.oNewDoc.mailDoc({bUI: false,cTo:"hr@college.edu",cSubject:"Emergency Contact Information",cMsg:"A new PTF employee completed the on-line form for Emergency Contact Information."});
oNewDoc.closeDoc(true);

I do not know why it will not e-mail the one page. Any ideas?


Ann Woodlief


2 Answers

Remove "this." from the start of "this.oNewDoc.mailDoc".

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


Gilad D (try67)   

Thanks but, removing the this. did not work.

My earlier version worked, but I could not add a subject line and have it work:

var oNewDoc = this.extractPages({nStart:15});
oNewDoc.mailDoc(false,"hr@college.edu");

oNewDoc.closeDoc(true);


Ann Woodlief   


Please specify a reason: