> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Email Transmission V1

# Type: Email Transmission Object

# Link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-transmission-v1/email-transmission-object.md

## Description: An email transmission represents a single email send request,
including its recipients, HTML content, sender information, type, and delivery status.
Creating an email transmission triggers the email to be sent asynchronously to all specified recipients.

An email transmission is kept until you delete it. The HTML and text content of the email is stored for 30 days, attachments are available for 30 days as well.

## Schema:

```json
 Type: Email Transmission Object | type: EmailTransmission
 Description: An email transmission represents a single email send request,
including its recipients, HTML content, sender information, type, and delivery status.
Creating an email transmission triggers the email to be sent asynchronously to all specified recipients.

An email transmission is kept until you delete it. The HTML and text content of the email is stored for 30 days, attachments are available for 30 days as well.
       - name: id  | type: string | description: Email transmission ID.
       - name: createdDate  | type: string | description: Date and time the email transmission was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the email transmission was last updated.
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the email transmission is updated.
           - name: value  | type: string | description: 
       - name: emailSubject  | type: string | description: Subject line of the email.
       - name: emailHtmlContent  | type: string | description: Full HTML content of the email.  Not returned in `queryEmailTransmissions`. Use `getEmailTransmission` to retrieve the HTML content of a specific transmission.  Stored for 30 days after the transmission is created. After that, this field returns `"<expired>"`.
       - name: metadata  | type: object | description: Custom key-value pairs attached to the transmission to identify the context in which the email was sent. These values are passed to the email service provider and included in domain event payloads. Keys and values support letters, numbers, and hyphens only (no spaces or other special characters). Length of keys and values must be between 1 and 50 characters.  Default: `{}`
       - name: senderName  | type: string | description: Display name shown as the sender.  Default: None (no display name is set).
           - name: value  | type: string | description: 
       - name: senderEmailAddress  | type: string | description: Sender email address. Must be verified using the Sender Emails API before use.  If the provided address can't be used as a FROM address (for example, addresses from free email providers such as gmail.com), the email is sent from `no-reply@et.wixsitemail.com` and the provided address is automatically used as the reply-to address instead.  Default: `no-reply@et.wixsitemail.com`
       - name: replyTo  | type: Recipient | description: Recipient that receives replies to this email. When a recipient replies, the reply is directed to this address instead of the sender address.  Default: When `senderEmailAddress` is provided and the email is sent from the Wix shared sender address, replies are automatically directed to `senderEmailAddress`.
           - name: id  | type: string | description: Recipient ID. Auto-generated value that uniquely identifies the recipient in the email transmission.
           - name: name  | type: string | description: Display name of the recipient.
           - name: status  | type: string | description: Status of this particular recipient.
               enum: PENDING, SENT, FAILED
           - name: failureReason  | type: string | description: Reason why the email couldn't be delivered to this recipient. `NONE` means the email was successfully sent.  Returned once the transmission reaches `PROCESSED` or `ABORTED` status.
               enum: NONE, RECIPIENT_NOT_FOUND, EMAIL_ADDRESS_MISSING, EMAIL_ADDRESS_INVALID, EMAIL_ADDRESS_BOUNCED, MARKETING_CONSENT_NOT_GIVEN, NOT_SITE_COLLABORATOR
           - ONE-OF:
               - name: contactId  | type: string | description: ID of the contact to send the email to. The contact's email address is retrieved from the Contacts API.
               - name: userId  | type: string | description: ID of the Wix user to send the email to. The user must be a site collaborator.  The user's email address is retrieved from the Users API.
               - name: emailAddress  | type: string | description: Email address to send the email to. A contact is created with this address if one doesn't already exist.
       - name: toRecipients  | type: Array<Recipient> | description: List of recipients the email is sent to.
       - name: type  | type: string | description: Email type.
           enum: TRANSACTIONAL, MARKETING
       - name: status  | type: string | description: Current status of the email transmission.
           enum: ACCEPTED, IN_PROGRESS, PROCESSED, REJECTED, ABORTED
       - name: customHeaders  | type: object | description: Custom headers to include in the email. Keys should have max length of 64 and must start with a letter and contain only letters, digits and hyphens. Keys are case insensitive and must be unique (for example, "X-Foo" and "x-foo" cannot both be provided). Values should have max length of 900 and must contain only printable ASCII characters (0x20-0x7E). The keys should not contain reserved headers (case insensitive) from this list: * BCC * CC * Content-Type * Content-Transfer-Encoding * DKIM-Signature * Feedback-ID * From * Precedence * Received * Reply-To * Return-Path * Sender * Subject * To * X-Abuse-Id If provided header happens to be also set by the system internally (for example "List-Unsubscribe"), provided header value will then be overridden.
       - name: emailTextContent  | type: string | description: Plain text content of the email (optional).  Not returned in `queryEmailTransmissions`. Use `getEmailTransmission` to retrieve the text content of a specific transmission.  Stored for 30 days after the transmission is created. After that, this field returns `"<expired>"`.
       - name: attachments  | type: Array<Attachment> | description: Email attachments. Total size for all attachments must not exceed 20 MB when base64-encoded. Emails are either sent with all attachments or not sent at all. If any attachment fails to process, email transmission status is set to `ABORTED`.  Attachments are available to download for 30 days.
           - name: fileName  | type: string | description: Name of the attached file. Following extensions are not supported: "adp", "apk", "app", "asp", "bas", "bat", "cmd", "com", "cpl", "dll", "exe", "fxp", "gadget", "hta", "inf", "ins", "isp", "jar", "js", "jse", "ksh", "mar", "msi", "msp", "prf", "prg", "ps1", "reg", "scf", "scr", "sct", "sys", "url", "vb", "vbe", "vbs", "vsmacros", "ws", "wsc", "wsf".
           - name: contentType  | type: string | description: MIME type of the attached file (optional). If not provided, the MIME type will be inferred on best effort.
           - name: metadata  | type: AttachmentMetadata | description: Metadata about the attachment.
               - name: sizeBytes  | type: number | description: Size of the attached file in bytes.
               - name: downloadUrl  | type: string | description: URL to download the attached file. The file is available for 30 days after the transmission is created.
           - ONE-OF:
               - name: remote  | type: RemoteFile | description: Remote file that will be downloaded from provided URL once.
                   - name: fetchUrl  | type: string | description: File download URL. It must be publicly accessible without authentication and stay valid until status has changed to `PROCESSED`. Download must finish in less than 30 seconds, max supported file size is 10 MB after base64 encoding.
               - name: local  | type: LocalFile | description: Base64-encoded content of the local file.
                   - name: contentBase64  | type: string | description: Base64-encoded content of the attachment file. This field is not returned in `getEmailTransmission`, `queryEmailTransmissions` nor domain events.
       - ONE-OF:
           - name: marketingOptions  | type: MarketingOptions | description: Options for marketing emails.  Used only when `type` is `MARKETING`.
               - name: unsubscribeUrlPlaceholder  | type: string | description: Placeholder in `emailHtmlContent` that gets replaced with a recipient-specific unsubscribe URL before the email is sent. Case-sensitive. For example, `{{unsubscribe_url}}` or `[UNSUBSCRIBE_URL]`. The placeholder must be unique within the HTML content.  If not set, an unsubscribe link in the site's default language is appended to the bottom of the email.
       - ONE-OF:
           - name: rejectedOptions  | type: RejectedOptions | description: Details about why the email transmission was rejected.  Returned only when `status` is `REJECTED`.
               - name: rejectionReasons  | type: Array<RejectionReason> | description: Reasons why the email transmission was rejected. The blacklists are managed by Wix and aren't queryable. If you believe your content was flagged incorrectly, contact Wix support.
                   enum: BLACKLISTED_SENDER_EMAIL, BLACKLISTED_SENDER_NAME, BLACKLISTED_REPLY_TO_EMAIL, BLACKLISTED_REPLY_TO_NAME, BLACKLISTED_LINK, BLACKLISTED_TEXT, FRAUDULENT_CONTENT
           - name: abortedOptions  | type: AbortedOptions | description: Details about why the email transmission was aborted.  Returned only when `status` is `ABORTED`.
               - name: abortionReasons  | type: Array<AbortionReason> | description: Reasons why the email transmission was aborted.
                   enum: FILE_DOWNLOAD_ERROR, ATTACHMENT_TOO_BIG, TOTAL_ATTACHMENTS_SIZE_TOO_BIG, NO_VALID_RECIPIENTS

```