ApiOmat sends eMails automatically during several events. By default, all emails are sent as plain text, whereas the used SMTP server and some static content can be configured in detail.
ApiOmat supports sending emails internally using an arbitray SMTP server. First of all, a valid SMTP server has to be configured in apiomat.yaml file using the following settings:
# the email's sender address ("from") used to send admin emails
# the support-email address (e.g. used as sender for "forgot password"-requests)
# the noreply-email address
# the message footer for emails if not sent over mandrill
# debug option to print verbose information during email sending
# Hostname of the SMTP server
# Username if authentication on SMTP server is necessary
# Password if authentication on SMTP server is necessary
# Port of the SMTP server
# TRUE if authentication is needed in SMTP server
# TRUE if SSL connection should be used
# TRUE if STARTTLS should be used
The admin, support and noreply keys are related to the sender displayed in the receivers email. A footer can be set as a plain text string which will be attached to every email sent.
If the debug option is set to true, the ApiOmat logs will contain much information about the sending process and eventual failure data.
All other settings are related to the SMTP server itself and may be queried from its administrator. An example to use an Office365 mail account may look like follows: