EPNMAILCONFIGURATIONSETTINGS

typedef struct tag_EPNMAILCONFIGURATIONSETTINGS
{
   L_UINT uStructSize; 
   L_UINT dwFlags; 
   L_BOOL bIsMAPI; 
   L_BOOL bUseDefaultMapiProfile; 
   EPNSMTPAUTHORSETTINGS SMTPAuthorSettings; 
   EPNSMTPSERVERSETTINGS SMTPServerSettings; 
   L_CHAR szMAPIProfileName[ MAX_STRING ]; 
   L_CHAR szMAPIPassword[ MAX_STRING ]; 
} EPNMAILCONFIGURATIONSETTINGS, L_FAR * pEPNMAILCONFIGURATIONSETTINGS;

The EPNMAILCONFIGURATIONSETTINGS structure provides information about e-mail configurations.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

dwFlags

Flags that indicate whether the saved files will be deleted after e-mailing them. Also it determines whether the mailing process will run in silent mode or interactively. You can use a bit wise OR (|) to specify more than one flag. Possible values are:

 

Value

Meaning

 

PRN_EML_FLG_SEND_INTERACTIVELY

[0x001] Send e-mails interactively. If this not set; then the e-mails will be sent in silent mode.

 

PRN_EML_FLG_CLEARFILES

 

[0x002] Delete the saved files after e-mailing them. If not set; then do not delete the files.

 

PRN_EML_FLG_DISABLE_SIZE_WARNING

[0x004] Disable the e-mail size warning.

 

bIsMAPI

Flag that indicates whether to use MAPI or SMTP settings to send e-mails. Possible values are:

 

Value

Meaning

 

TRUE

Use MAPI settings.

 

FALSE

Use SMTP settings.

bUseDefaultMapiProfile

Flag that indicates whether to use the default MAPI profile, or a customized profile.

 

Note that when using custom profile you should fill the szMAPIProfileName with the profile name intended to be used, and fill the szMAPIPassword with the password for the custom profile if a password used. Possible values are:

 

Value

Meaning

 

TRUE

Use default profile.

 

FALSE

Use custom profile.

SMTPAuthorSettings

EPNSMTPAUTHORSETTINGS structure that contains information about the sender of the e-mail.

SMTPServerSettings

EPNSMTPSERVERSETTINGS structure that contains information about the SMTP e-mail server configurations.

szMAPIProfileName

Character string that contains the name of the custom MAPI profile. Use this member only if the value of bUseDefaultMAPIProfile is set to FALSE.

szMAPIPassword

Character string that contains the password of the custom MAPI profile. Use this member only if the value of bUseDefaultMAPIProfile is set to FALSE and a password is needed for the custom profile.

Comments

These settings will be used each time you print using the ePrint printer and enable emailing of the files.

This structure is used within the L_EpnSetPrinterEmailConfiguration function.