Class TrMapiEmail

Unit

Declaration

type TrMapiEmail = class(TComponent)

Description

non visual components which provides all function for sending of email by MAPI interface, single or batch sending is supported

Hierarchy

  • TComponent
  • TrMapiEmail

Overview

Methods

Public function ExternalAppExists: boolean;
Public procedure ExternalAppLoadSendMail(IniFileName: string = ''; DeleteAfterSend: boolean = true);
Public procedure InitMail;
Public function SendSimpleMail: boolean;
Public function SendMapiMail(RunMailType: TRunMailType = rmExternalAppPrefered; RunMailVersion: TRunMailMapiVersion = rmAuto): boolean;
Public function SendOutlookMail(RunMailType: TRunMailType = rmExternalAppPrefered): boolean;
Public function SendAutoSelect(MapiOrOutlook: TRunMailMapiOutlook = rmOutlookPreferred): boolean;
Public procedure AddToBatchMail(UseOutlook: boolean = false);
Public procedure InitBatchMail;
Public function SendBatchMail(RunMailType: TRunMailType = rmExternalAppPrefered): boolean;

Properties

Public property BatchMailList: TStrings read FBatchMailList;
Published property BatchConfirmCount: byte read FBatchConfirmCount write FBatchConfirmCount default 10;
Published property SendTo: TStrings read FSendTo write SetSendTo;
Published property CopyTo: TStrings read FCopyTo write SetCopyTo;
Published property BlindCopyTo: TStrings read FBlindCopyTo write SetBlindCopyTo;
Published property Subject: string read FSubject write FSubject;
Published property Body: TStrings read FBody write SetBody;
Published property Attachments: TStrings read FAttachments write SetAttachments;
Published property ShowErrorDlg: boolean read FShowErrorDlg write FShowErrorDlg default false;
Published property MailAppDirectory: string read FMailAppDirectory write FMailAppDirectory;
Published property RemoveRecepientsDuplicity: boolean read FRemoveRecepientsDuplicity write FRemoveRecepientsDuplicity default true;
Published property SendAutomatically: boolean read FSendAutomatically write FSendAutomatically default false;
Published property OutlookOptions: TOutlookOptions read FOutlookOptions write FOutlookOptions default [ooUseRunningApplication];

Description

Methods

Public function ExternalAppExists: boolean;

check if external application exists

Public procedure ExternalAppLoadSendMail(IniFileName: string = ''; DeleteAfterSend: boolean = true);

used by external mail application to load ini file and send emails

Public procedure InitMail;

init all mail variables

Public function SendSimpleMail: boolean;

send mail via mailto command (limited body lenght and without attachment)

Public function SendMapiMail(RunMailType: TRunMailType = rmExternalAppPrefered; RunMailVersion: TRunMailMapiVersion = rmAuto): boolean;

send mail via MAPI

Public function SendOutlookMail(RunMailType: TRunMailType = rmExternalAppPrefered): boolean;

send mail via Outlook OLE

Public function SendAutoSelect(MapiOrOutlook: TRunMailMapiOutlook = rmOutlookPreferred): boolean;

send mail via mailto command or MAPI or Outlook according mail content

Public procedure AddToBatchMail(UseOutlook: boolean = false);

add mail to batch list

Public procedure InitBatchMail;

init batch list

Public function SendBatchMail(RunMailType: TRunMailType = rmExternalAppPrefered): boolean;

send batch emails

Properties

Public property BatchMailList: TStrings read FBatchMailList;

return list of mails in batch list

Published property BatchConfirmCount: byte read FBatchConfirmCount write FBatchConfirmCount default 10;

define number of sent mail when Continue confirm dialog is shown

Published property SendTo: TStrings read FSendTo write SetSendTo;

define recipient addresses

Published property CopyTo: TStrings read FCopyTo write SetCopyTo;

define copy recipient addresses

Published property BlindCopyTo: TStrings read FBlindCopyTo write SetBlindCopyTo;

define blind copy recipient addresses

Published property Subject: string read FSubject write FSubject;

define mail subject text

Published property Body: TStrings read FBody write SetBody;

define mail body text

Published property Attachments: TStrings read FAttachments write SetAttachments;

define list of attachments

Published property ShowErrorDlg: boolean read FShowErrorDlg write FShowErrorDlg default false;

define whether error dialog is show

Published property MailAppDirectory: string read FMailAppDirectory write FMailAppDirectory;

define location of SendMail.exe as external app

Published property RemoveRecepientsDuplicity: boolean read FRemoveRecepientsDuplicity write FRemoveRecepientsDuplicity default true;

define automatic removal of duplicity in the email addresses

Published property SendAutomatically: boolean read FSendAutomatically write FSendAutomatically default false;

define whether email is sent without any prompt (if MAPI client allows it)

Published property OutlookOptions: TOutlookOptions read FOutlookOptions write FOutlookOptions default [ooUseRunningApplication];

define options for Outlook email


Generated by PasDoc 0.15.0.