The GenerateEML extension creates a MIME email message and outputs it as Binary Data (.eml format).
The generated .eml file includes:
.eml
Sender
Recipients (To, Cc, Bcc)
Subject
HTML email body
Auto-generated plain text body
Attachments
MIME headers
Sent timestamp
The file produced can be opened directly in:
Outlook
Apple Mail
Thunderbird
Gmail (after upload)
Any MIME-compatible email client
Generates a MIME email message and returns it as a .eml file.
Represents the email to be generated.
Date
If HtmlBody is provided, the extension automatically generates a plain text version for compatibility with email clients.
HtmlBody
SentDateTime is written to the MIME Date header.
SentDateTime
Represents an email address.
Name: John Doe Email: john@example.com
If Name is empty, the email will still be valid.
Name
Represents a file attachment.
If no ContentType is provided, the system defaults to:
application/octet-stream
Inline attachments are typically images embedded in HTML emails.
Example:
HTML body:
<img src="cid:logo">
Attachment:
Generates a .eml file from a JSON email structure.