VpeSetMailAutoAttachDocType

<< Click to Display Table of Contents >>

Navigation:  E-Mail Functions >

VpeSetMailAutoAttachDocType

Previous pageReturn to chapter overviewNext page

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

The value of this property controls, what type of document is automatically attached to e-mails
(see also VpeAddMailAttachment).

void VpeSetMailAutoAttachDocType(

VpeHandle hDoc,

int doc_type

)

VpeHandle hDoc

Document Handle

int doc_type

possible values are:

Constant Name

Value

Comment

VPE_DOC_TYPE_AUTO

0

VpeMailDoc() will attach the document as VPE, PDF or HTML file, depending on the file suffix of the parameter file_name which is supplied to AddMailAttachment().

VPE_DOC_TYPE_VPE

1

MailDoc() will attach the document as VPE document file, regardless of the file suffix

VPE_DOC_TYPE_PDF

2

MailDoc() will attach the document as PDF document file, regardless of the file suffix

VPE_DOC_TYPE_HTML

3

MailDoc() will attach the document as HTML document file, regardless of the file suffix

VPE_DOC_TYPE_XML

4

VPE XML Format

VPE_DOC_TYPE_ODT

5

OpenOffice Document Text

Default:

VPE_DOC_TYPE_PDF