Typ: Klasse
Stellt die Scriptklasse TSMTP bereit.
| Basisklasse | TObject |
|---|---|
| Statisch | false |
Klassendeklaration
type
TSMTP = class(TObject)
public
constructor Create(Host: String; UserID: String; Password: String);
constructor CreateFromKind(Value: Variant);
constructor CreateFromDefault;
destructor Free;
function CreateMail: TSMTPMail;
procedure SendMail(Mail: TSMTPMail);
property Port: Integer;
property SSL: Boolean;
property TLS: Integer;
property MailAgent: String;
property HeloName: String;
property SSLVer: Integer;
property AuthKind: Integer;
property Host: String;
property UserName: String;
property Password: String;
property TokenURL: String;
property TennentID: String;
property ClientID: String;
property ClientSecret: String;
end;
Konstruktoren #
Create #
Erzeugt eine Instanz von TSMTP.
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 TSMTP.
Signatur
constructor CreateFromKind(Value: Variant);
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Value |
Variant |
value |
Nein | Parameter Value des Konstruktors. |
CreateFromDefault #
Erzeugt eine Instanz von TSMTP.
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.
SendMail #
Stellt SendMail bereit.
Signatur
procedure SendMail(Mail: TSMTPMail);
Parameter
| Name | Typ | Modifier | Optional | Beschreibung |
|---|---|---|---|---|
Mail |
TSMTPMail |
value |
Nein | Parameter Mail der Methode. |
Properties #
Port #
Property Port.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property Port: Integer;
SSL #
Property SSL.
| Typ | Boolean |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property SSL: Boolean;
TLS #
Property TLS.
| Typ | Integer |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property TLS: Integer;
MailAgent #
Property MailAgent.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property MailAgent: String;
HeloName #
Property HeloName.
| Typ | String |
|---|---|
| Lesbar | true |
| Schreibbar | true |
Signatur
property HeloName: String;
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;
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;
Kategorie: TSMTP
