Covered in this article
Related pages
Latest Changelog
Version 1.0.1 ()
Email component with Credentials

Email component with Credentials

This email component is designed for use with the Mailchimp Transactional API.

AVA 1.0.0 release status — 2026-10-30

Published conditionally: #58/#72/#75/#80 remain required. Exact source · Full report · Packaged intake. This authored implementation follows the AVA and native Mailchimp Transactional contracts; it is not recovery of the unexamined upstream code named in the original fleet seed. Existing main and history are preserved. The separate platform-environment Email connector is unchanged.

Send Email accepts Mandrill API key/URL, required sender name/address, comma-separated To/Cc/Bcc, subject and text/HTML. Text objects/arrays are JSON-stringified; HTML passes unchanged with inline_css:true. Rendering is provider/client behavior, not locally verified. Recipient results must form a complete unique set and are matched by email, with sent/queued/scheduled/rejected/invalid mappings. SubmittedAt is local submission time padded to seven fractional digits, not delivery time or higher clock precision. Verification requires PONG! from users/ping.json; no real account was used.

Attachments use anonymous HTTPS or an explicit scoped reference, exactly one selector per entry. At most100 entries,255-byte basename/MIME fields and8192-byte URLs are accepted. All metadata and complete file reads finish before the one Send POST. API keys and caller authentication are not forwarded to downloads; references remain caller-owned and are never removed. Anonymous accessible HTTPS works, while authenticated legacy platform URLs remain unsupported. Scoped references are an explicit extension rather than URL parity.

Binary bytes are preserved, including empty/high-bit/JSON-looking files. Independent review first caught a partial206 download being sent as a complete file; the released correction refuses206 or any Content-Range before Send. Unencoded identity-length mismatches also refuse, while already-decoded/compressed or transfer-coded responses do not compare wire length with decoded bytes. Transport framing/decoding remains host-owned; synthetic tests are not live decompression proof.

The complete serialized request, including credentials, metadata and base64 expansion, must fit5MiB or a smaller supported MAX_BODY_LENGTH. The documented10MiB default does not override the host, and the isolated worker withholds custom environment overrides (#58). Errors before Send never deliver partial attachments. Sends are not automatically retried. With suppression enabled, known recipient outcomes are retained; ambiguous transport failure has explicit deliveryStatus:unknown. Input, attachment, size and clean-room-preview failures still throw. Neither queued results nor suppression establish delivery.

The publisher records both Node20.20.2/24.13.0 final checks:98 offline tests,98 sealed-loader tests,24 canonical workers, all four gates,50 source checks/55 workers and51 independent root workers, zero external network attempts and zero caller reference removals. This documentation chat read the full report and accepted packaged43-file intake, checked the exact annotated tag/main, and attributes those suites to their publisher/reviewer rather than claiming a rerun. Host4576be and harnessf05a0c4d are candidate dependencies; real scoped storage injection, tenant persistence, UI, account permissions and delivery remain unverified. The report preserves the documented API URL default and discloses native-spec/version drift.

Tag object20b1e2d45211586afc77ebaf0605492940911758 peels to the source above; main staysc7cf081cf936cc5053f885035abc01e600820801. No installation or deployment is claimed. Follow the single #62 install table. Historical source release notes below remain verbatim.


Table of Contents

Description

This email component is designed for use with the Mailchimp Transactional API.

Credentials

To utilize this component, you must create a Mailchimp account and generate an API key that will serve as part of the credentials for the Mandrill app.

Once you have your API key, please complete the following fields in the component’s credential section:

  • Mandrill API Key - (string, required): Your key from the Mandrill app settings.
  • Mandrill API Url - (string, optional, https://mandrillapp.com/api/1.0 by default): The URL for the API.
  • From Email - (string, required): The sender’s email address.
  • From Name - (string, required): The sender’s name.

Environment variables

The component can be configured using the following environmental variables

Name Mandatory Description Values
MAX_BODY_LENGTH false Maximum email message size (including attachments), 10485760 (10MB) by default  

Actions

Send Email

For each incoming message the component send a new transactional message through Mandrill using the Send new message API resource.

Configuration Fields

  • Do not throw an error when e-mail send failed - (checkbox, required): If checked, component will not throw an error when sending failed, details will be provided in output message.

Input Metadata

  • To - (string, required): The email address(es) for primary recipients, you can fill comma separated list
  • Cc - (string, optional): Comma separated list of E-mail addresses to receive a copy of the mail
  • Bcc - (string, optional): Comma separated list of E-mail addresses to receive a blind copy of the mail
  • Subject - (string, required): Subject of the E-mail
  • Text Body - (string, optional): The text content of the E-mail to be sent. If body is a JSON object/array, then it will be stringified. The text field serves as a fallback for email clients that do not render HTML. If a recipient’s email client cannot display HTML emails or the HTML body field is empty, the plain text version will be shown instead. Either the ‘Text Body’ or ‘HTML Body’ field must be filled in. If both are filled in, the ‘HTML Body’ will be used.
  • HTML Body - (string, optional): The HTML content of the E-mail to be sent. Either the ‘Text Body’ or ‘HTML Body’ field must be filled in. If both are filled in, the ‘HTML Body’ will be used.
  • Attachments (array, optional): Series of objects with the following format:
    • Attachment URL (string, required): URL to file (platform storage or external)
    • Filename (string, required): Name of the attached file that will appear in the received email

An HTML body example:

{
  "to": "[email protected]",
  "subject": "HTML content",
  "textBody": "Poor text content",
  "htmlBody": " <head>
                  <meta charset=\"UTF-8\">
                  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
                  <title>Sample Email</title>
                  <style>
                    body {
                        font-family: Arial, sans-serif;
                        background-color: #f4f4f4;
                        margin: 0;
                        padding: 20px;
                    }
                    .container {
                      background-color: #ffffff;
                      padding: 20px;
                      border-radius: 5px;
                      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                    }
                    .btn {
                      display: inline-block;
                      padding: 10px 15px;
                      font-size: 16px;
                      color: white;
                      background-color: #007BFF;
                      text-decoration: none;
                      border-radius: 5px;
                    }
                    .btn:hover {
                      background-color: #0056b3;
                    }
                  </style>
                </head>
                <body>
                  <div class=\"container\">
                    <h1>Hello, [Recipient's Name]!</h1>
                    <p>Thank you for subscribing to our newsletter. We're excited to have you on board!</p>
                    <p>Stay tuned for updates, tips, and exclusive offers just for you.</p>
                    <p>To get started, click the button below:</p>
                    <a href=\"https://www.example.com\" class=\"btn\">Get Started</a>
                    <p>Best regards,<br>Your Company Name</p>
                  </div>
                </body>
              </html>"
}

HTML Email Styling Best Practices

When providing content for the HTML Body, keep in mind that rendering in email clients (like Gmail, Outlook, or Apple Mail) differs significantly from modern web browsers.

  1. CSS Inlining: Many email clients (especially Gmail and older versions of Outlook) strip out <style> blocks located in the <head> for security and performance reasons. For the most reliable results, inline your CSS directly into the HTML tags using the style attribute.
  2. Avoid CSS Variables: Email clients do not support CSS variables (e.g., var(--main-color)). Use literal hex codes instead.
  3. Table-Based Layouts: While modern browsers use Flexbox or Grid, many email clients still require standard HTML tables (<table>) for complex multi-column layouts to ensure stability.
  4. CSS Inlining Support: This component uses the Mandrill API’s inline_css feature, which attempts to automatically move styles from your <style> block into the elements. However, this is not 100% foolproof (especially with complex selectors or variables), so manual inlining is always recommended for critical designs.

An HTML body example with inlined styles:

{
  "to": "[email protected]",
  "subject": "HTML content",
  "textBody": "Hello! Thank you for subscribing.",
  "htmlBody": "<body style=\"margin:0; padding:20px; font-family:Arial,sans-serif; background-color:#f4f4f4;\">
                  <div style=\"background-color:#ffffff; padding:20px; border-radius:5px; box-shadow:0 0 10px rgba(0, 0, 0, 0.1); max-width:600px; margin:0 auto;\">
                    <h1 style=\"color:#333;\">Hello, Recipient!</h1>
                    <p style=\"font-size:16px; color:#666; line-height:1.5;\">Thank you for subscribing to our newsletter.</p>
                    <a href=\"https://www.example.com\" style=\"display:inline-block; padding:10px 20px; background-color:#007BFF; color:#ffffff; text-decoration:none; border-radius:5px;\">Get Started</a>
                  </div>
                </body>"
}

Output Metadata

As a result of sending you will get object “results” which contain result entities of sending messages for each recipient, consists of:

  • To - (string): the email address of the recipient
  • RecipientType - (string): Type of recipient, possible values: to, cc, bcc
  • Message - (string): The sending status of the recipient, possible values: OK or QUEUED - if successful, REJECTED or INVALID on fail
  • MessageID - (string): The message’s unique id
  • SubmittedAt - (string): Date, when message was submitted in format - YYYY-MM-DDTHH:mm:ss.SSSSSSSZ
  • ErrorCode - (number): deprecated parameter, always 0