Mail Servers
Mail Servers in Amorphic are used by workflows and services that need SMTP configuration for sending email notifications.
Below is the sample resource definition file for Mail Server:
{
"rMailServer": {
"Type": "MailServer",
"Properties": {
"ServerName": "acme-smtp",
"ServerDescription": "Base SMTP server for CICD QA testing",
"Port": 587,
"Enabled": true,
"UserName": "smtp_user",
"Password": "changeme",
"AccountEmail": "noreply@example.com"
}
}
}
MailServer has dependencies on Tag.
Dependent resources should not be deleted before the primary resource; attempting to do so may lead to failures or inconsistencies during the deletion process.
Referencing this Resource
Below are the common keys that can be used in the DependsOn function to retrieve details of this resource.
Supported Keys
| Key | Description |
|---|---|
| ServerName | Returns the ServerName value of this resource |
| ServerId | Returns the ServerId value of this resource |
For additional supported keys, refer to the API definition document for the respective resource type.
Example
To reference this schedule from another resource, use !DependsOn with logical name and property in the format <logicalResourceName>.<PropertyName>.
Example: {"!DependsOn": "rMailServer.ServerId"}