I am trying to use the follwing code in a 7.0.4 Designer form:
this.mailDoc({
bUI: false,
cTo: "apstory [at] ap [dot] com",
cCC: "dpsmith [at] ap [dot] com",
cSubject: "The Latest News",
cMsg: "A.P., attached is my latest news story in PDF."
});
The code is a copy from the 7.0.5 Jscript Reference. When I execute the code I get this error in the debugger:
TypeError: this.mailDoc is not a function
21:XFA:form1[0].#subform[0].EmailSubmitButton1[0]:click
event.target.mailDoc();
Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script