email-eml-generator
Service icon

Email EML Generator

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 16 Mar (3 weeks ago)
 by 
0.0
 (0 ratings)
email-eml-generator

Email EML Generator

Documentation
1.0.0

Overview

The GenerateEML extension creates a MIME email message and outputs it as Binary Data (.eml format).

The generated .eml file includes:

  • 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


Action

GenerateEml

Generates a MIME email message and returns it as a .eml file.

Inputs

ParameterTypeDescription
EmailMessageEmailMessage StructureThe email content, recipients, body, and attachments used to construct the MIME message

Outputs

ParameterTypeDescription
EmlBinaryBinary DataThe generated .eml file
SuccessBooleanIndicates whether the generation succeeded
ErrorMessageTextError message if generation fails

EmailMessage Structure

Represents the email to be generated.

FieldTypeDescription
FromEmailRecipientSender of the email
ToList of EmailRecipientPrimary recipients
CcList of EmailRecipientCarbon copy recipients
BccList of EmailRecipientBlind carbon copy recipients
SubjectTextEmail subject
HtmlBodyText (unlimited)HTML body of the email
SentDateTimeDateTimeTimestamp used for the MIME Date header
AttachmentsList of EmailAttachmentEmail attachments

Notes

  • If HtmlBody is provided, the extension automatically generates a plain text version for compatibility with email clients.

  • SentDateTime is written to the MIME Date header.


EmailRecipient Structure

Represents an email address.

FieldTypeDescription
NameTextDisplay name of the recipient (optional)
EmailTextEmail address

Example

Name: John Doe Email: john@example.com

If Name is empty, the email will still be valid.


EmailAttachment Structure

Represents a file attachment.

FieldTypeDescription
FileNameTextFile name of the attachment
ContentTypeTextMIME type of the file
ContentBinary DataFile contents
IsInlineBooleanIndicates whether the attachment is embedded in the HTML body
ContentIdTextIdentifier used for inline attachments

ContentType Examples

FileContentType
PDFapplication/pdf
PNGimage/png
JPEGimage/jpeg
DOCXapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
XLSXapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet


If no ContentType is provided, the system defaults to:

application/octet-stream

Inline Attachments

Inline attachments are typically images embedded in HTML emails.

Example:

HTML body:

<img src="cid:logo">

Attachment:

FieldValue
FileNamelogo.png
ContentTypeimage/png
IsInlineTrue
ContentIdlogo

0.1.0

GenerateEml

Generates a .eml file from a JSON email structure.

Input

ParameterTypeDescription
EmailMessageJsonTextJSON structure describing the email message

Output

ParameterTypeDescription
EmlBinaryText (Base64) Generated .eml Base64 string
SuccessBooleanIndicates if the generation succeeded
ErrorMessageTextError description if generation failed