<< Click to Display Table of Contents >> BeforeMail Event - Python |
![]() ![]() ![]() |
Is fired, when the user clicked the eMail-button in the preview (or pushed the corresponding key). The e-mail was not sent yet, therefore your application has now the option to set receivers, attachments, etc. by code.
integer BeforeMail()
Remarks:
The event handler should return:
Value |
Description |
0 |
continue operation |
1 |
cancel operation i.e. do not mail the document |
If you set this parameter to True, the operation is cancelled, i.e. VPE will not mail the document. Cancelling the operation allows you to display your own mail dialog and/or to execute your own mailing code.