Wednesday, December 2, 2009

Including the pdf in an email

I keep forgetting what the code is, so here it is;
var myDoc = event.target;
myDoc.mailDoc(false, "to", "cc", "bcc", "Subject", "mail body" );
Placing this in the clic\ck event of a button launches the default emailing client and attaches the pdf.

The first parameter can be set to True, thus not requiring the rest of the parameters.

No comments: