Typ: Klasse
Stellt die Scriptklasse TIMAP bereit.
| Basisklasse | TObject |
|---|---|
| Statisch | false |
Klassendeklaration
type
TIMAP = class(TObject)
public
constructor Create(Host: String; UserID: String; Password: String);
constructor CreateFromKind(Value: Variant);
constructor CreateFromDefault;
destructor Free;
function CreateMail: TSMTPMail;
function Connect: Boolean;
procedure Disconnect;
function MailCount(Mailbox: String): Integer;
function RetrieveMail(Mailbox: String; Index: Integer; Mail: TMailMessage): Boolean;
function RemoveMail(Mailbox: String; UID: String): Boolean;
function SendMail(Mailbox: String; Mail: TMailMessage): Boolean;
property Port: Integer;
property SSL: Integer;
property TLS: Integer;
property SSLVer: Integer;
property AuthKind: Integer;
property Host: String;
property Mailbox: String;
property UserName: String;
property Password: String;
property TokenURL: String;
property TennentID: String;
property ClientID: String;
property ClientSecret: String;
property MailboxList: TStrings;
end;
Konstruktoren #
Create #
Erzeugt eine Instanz von TIMAP.
Signatur
constructor Create(Host: String; UserID: String; Password: String);
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Host |
String |
value |
Ja | Parameter Host des Konstruktors. |
UserID |
String |
value |
Ja | Parameter UserID des Konstruktors. |
Password |
String |
value |
Ja | Parameter Password des Konstruktors. |
CreateFromKind #
Erzeugt eine Instanz von TIMAP.
Signatur
constructor CreateFromKind(Value: Variant);
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Value |
Variant |
value |
Nein | Parameter Value des Konstruktors. |
CreateFromDefault #
Erzeugt eine Instanz von TIMAP.
Signatur
constructor CreateFromDefault;
Methoden #
Free #
Gibt die Instanz frei.
Signatur
destructor Free;
CreateMail #
Stellt CreateMail bereit.
Signatur
function CreateMail: TSMTPMail;
Rueckgabewert
TSMTPMail – Rueckgabewert der Methode CreateMail.
Connect #
Stellt Connect bereit.
Signatur
function Connect: Boolean;
Rueckgabewert
Boolean – Rueckgabewert der Methode Connect.
Disconnect #
Stellt Disconnect bereit.
Signatur
procedure Disconnect;
MailCount #
Stellt MailCount bereit.
Signatur
function MailCount(Mailbox: String): Integer;
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Mailbox |
String |
value |
Nein | Parameter Mailbox der Methode. |
Rueckgabewert
Integer – Rueckgabewert der Methode MailCount.
RetrieveMail #
Stellt RetrieveMail bereit.
Signatur
function RetrieveMail(Mailbox: String; Index: Integer; Mail: TMailMessage): Boolean;
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Mailbox |
String |
value |
Nein | Parameter Mailbox der Methode. |
Index |
Integer |
value |
Nein | Parameter Index der Methode. |
Mail |
TMailMessage |
value |
Nein | Parameter Mail der Methode. |
Rueckgabewert
Boolean – Rueckgabewert der Methode RetrieveMail.
RemoveMail #
Stellt RemoveMail bereit.
Signatur
function RemoveMail(Mailbox: String; UID: String): Boolean;
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Mailbox |
String |
value |
Nein | Parameter Mailbox der Methode. |
UID |
String |
value |
Nein | Parameter UID der Methode. |
Rueckgabewert
Boolean – Rueckgabewert der Methode RemoveMail.
SendMail #
Stellt SendMail bereit.
Signatur
function SendMail(Mailbox: String; Mail: TMailMessage): Boolean;
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Mailbox |
String |
value |
Nein | Parameter Mailbox der Methode. |
Mail |
TMailMessage |
value |
Nein | Parameter Mail der Methode. |
Rueckgabewert
Boolean – Rueckgabewert der Methode SendMail.
Properties #
Port #
Property Port.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property Port: Integer;
SSL #
Property SSL.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property SSL: Integer;
TLS #
Property TLS.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property TLS: Integer;
SSLVer #
Property SSLVer.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property SSLVer: Integer;
AuthKind #
Property AuthKind.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property AuthKind: Integer;
Host #
Property Host.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property Host: String;
Mailbox #
Property Mailbox.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property Mailbox: String;
UserName #
Property UserName.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property UserName: String;
Password #
Property Password.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property Password: String;
TokenURL #
Property TokenURL.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property TokenURL: String;
TennentID #
Property TennentID.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property TennentID: String;
ClientID #
Property ClientID.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property ClientID: String;
ClientSecret #
Property ClientSecret.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property ClientSecret: String;
MailboxList #
Property MailboxList.
| Typ | TStrings |
|---|---|
| Lesbar | true |
| Schreibbar | false |
Signatur
property MailboxList: TStrings;
Kategorie: TIMAP
