MailWithDialog

<< Click to Display Table of Contents >>

Navigation:  E-Mail Functions >

MailWithDialog

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by the Community Edition]

Specifies, whether a dialog is shown to the user with input fields for recipients, subject, text and attachments when an e-mail is sent. An e-mail is sent either by pushing the e-Mail button in the preview or by executing MailDoc() by code. It is very useful to set MailWithDialog to false, if you do automatic serial e-mailings in the background without user interaction.

property boolean VPE.MailWithDialog

write; runtime only

Possible Values:

Value

Description

True

show dialog

False

do not show the dialog

Default:

True

Remarks:

If the user has not logged on to a MAPI client, a logon dialog might be displayed once for the first e-mail that is sent, regardless of the setting of this property.

 

If you are setting MailWithDialog = False, at least one recipient must be specified by code (see AddMailReceiver()), otherwise a dialog is shown.

 

This option does not work with some MAPI clients (a dialog will always be shown). It also depends sometimes on the MAPI client configuration, whether a dialog is shown or not.