/api/system
This endpoint sends an mail using the fylr server infrastructure. The mail is composed as multipart mail with separate HTML and text bodies. The user needs the `system.sendmail` or `system.root` system right. After sending an email `EMAIL_SENT` or `EMAIL_SENT_ERROR` event is written.
The Cc addresses to use in the mail header.
The From address to use in the mail header.
The body of the mail in HTML format. You can reference attachements using the cid:
semantic. Use the cid:<URL>
as source for images. If the cid:
is followed by an URL, the data is requested and attached. The cid:<URL>
is then replaced with a filename referencing the attachment. If the URL begins with fylr.externalURL
, the current access token is appended to the URL. With this, local file previews can be accessed and embedded in the email.
The Subject to use in the mail header.
The body of the mail in TEXT format.
The To address to use in the mail header.
The mail has been handed over successfully to the MTA (mail transfer agent)
An error occurred, this triggers a EMAIL_SENT_ERROR
event to be written.
{
"status": "ok"
}
This endpoint sends a test email to one mail address. The user needs the `system.sendmail` or `system.root` system right. After sending an email `EMAIL_SENT` or `EMAIL_SENT_ERROR` event is written.
The To address to use in the mail header.
The mail has been handed over successfully to the MTA (mail transfer agent)
An error occurred, this triggers a EMAIL_SENT_ERROR
event to be written.
{
"status": "ok"
}
Last updated