This is a write-only backend: each uploaded file is sent as an email attachment. Listing directories always returns an empty result.
Host: The SMTP server.Port(optional): The SMTP port. Defaults to25.SSL(optional):trueto connect with SSL/TLS (SMTPS). Defaults totrueon port465,falseotherwise.StartTLSPolicy(optional):MandatoryStartTLS(default),OpportunisticStartTLSorNoStartTLS.Username,Password(optional): The SMTP credentials.Localname(optional): The host name sent in theHELOcommand.From: The sender address.To: The recipient address.Subject: The subject of the emails.MaxSize(optional): Maximum size of an uploaded file in bytes,26214400(25 MiB) by default. Must be positive. Larger uploads are refused and no email is sent.Message: The body of the emails,%sis replaced by the file name.
See example.json:
{
"accesses": [
{
"user": "test",
"pass": "test",
"fs": "mail",
"params": {
"From": "alice@example.com",
"To": "bob@example.com",
"Subject": "New File",
"Message": "A new file has been uploaded: %s",
"Host": "smtp.example.com",
"Port": "465",
"Username": "smtpuser",
"Password": "smtppassword"
}
}
]
}