BeforeMail Event - Python

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the Python Control >

BeforeMail Event - Python

Previous pageReturn to chapter overviewNext page

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.

 

See also:

E-Mail Functions