Email Service

This service provides email notification by setting your SMTP relay server.
If the SMTP server is omitted, the email sender is automatically set to mailrelay@exosite.com email address and a limited amount of email per day is allowed depending on your Murano plan.

Operations

Email

Settings

Operations

Email


send

Send an email.
If the connection.server attribute is omitted, the email sender is automatically set to mailrelay@exosite.com email address and a limited amount of email per day is allowed depending on your Murano plan.

Arguments
parameters - object - Object containing service call parameters.
Name Type Description
email object The email and connection data
email.cc [ string(email) ] Carbon copy destination(s) email address(es)
email.to [ string(email) ] Destination(s) email address(es)
email.bcc [ string(email) ] Blind carbon copy destination(s) email address(es)
email.from string(email) Sender email address, only available when specifying an SMTP relay server with connection.server.
Default: "mailrelay@exosite.com"
email.html string(html) Email message in HTML format
email.text string Email message text
email.subject string {..78} Email subject
email.connection object An SMTP connection information to avoid daily limitation and sender email restriction. Gmail user will need to activate the "lesssecureapps" mode on https://support.google.com/accounts/answer/6010255.
email.port integer The SMTP server port
email.user ^[^\s-]+$ The SMTP server account
email.scheme "smtp", "smtps" The SMTP server
Default: "smtp"
email.server string(uri) The SMTP server relay URL
email.password ^[^\s-]+$ The SMTP server password
Responses
Email transmission details - object
Name Type Description
accepted [ string(email) ] List of destination emails
envelope object Email envelope details
rejected [ string(email) ] List of rejected destination emails
response string Response from smtp server
messageId string Unique message Id
Daily email quota reached. Consider adding your personal SMTP server or contact Murano team for upgrading your plan. You can view your current email usage with getSettings operation or on your Murano portal account. - nil

Daily email quota reached. Consider adding your personal SMTP server or contact Murano team for upgrading your plan. You can view your current email usage with getSettings operation or on your Murano portal account.

Error response - object
Name Type Description
code string Error code
message string Error message
Example
local emailData = {
  from = "me@myemail.com",
  to = {
    "destination1@email.com",
    "destination2@email.com",
  },
  subject = "Hello",
  text = "World",
  html = "<p><b>World</b></p>",
  connection = {
    server = "smtp.myemail.com",
    port = 1234,
    user = "me",
    password = "mysecret"
  }
} local result = Email.send(parameters)

Settings


getSettings

Get email settings, current usage, and quota. Detailed error is available in the service response.

Responses
Usage and settings information for a given solution - object
Name Type Description
quota object Email quota limitation for this solution, only if SMTP setting is not provided.
quota.daily integer Daily quota, reset midnight UTC time.
usage object Current email usage for this solution.
usage.daily integer Daily usage, reset midnight UTC time.
Error response - object
Name Type Description
code string Error code
message string Error message