Mail class
Provides access to the mail functionality of GeoApps.
Signature:export declare class Mail
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Mail
class.
Example
The following example shows how to send an email to a user through GeoApps
// Connect with GeoApps as authenticated user
geoapps.Initialize("<specified tenant>", {
authorize: "token",
token: "<user token>" // Token can be requested through https://login.geoapps.nl/token/generatePAT
});
// Send an email through the specified GeoApps instance
geoapps.Mail.SendMail({
From: "<source mailaddress>",
To: "<target mailaddress>",
Subject: "Example mail",
Body: "Example email"
});
Methods
Method | Modifiers | Description |
---|---|---|
SendMail(message) | Sends email to server |