Send SAP documents as email attachments. Supports configurable recipients, subject templates, and message bodies with no credential setup required.
Use Cases
- Email invoices directly from SAP
- Notify accounts payable teams with document attachments
- Send delivery notes and shipping documents to partners
Send SAP documents as email attachments directly from FileRelay. No credential configuration is needed — FileRelay handles email delivery through its managed sending infrastructure with SPF, DKIM, and DMARC authentication.
Setup
- In FileRelay, add an Email destination
- Enter the recipient email address(es) in the to field (separate multiple addresses with commas)
- Optionally customize the subject line and body text using placeholders
- Save the destination and attach it to a routing rule
No SMTP server, credentials, or DNS configuration is required.
REPLACE: Screenshot of the Email connector configuration form in FileRelay
How It Works
When a routing rule triggers, FileRelay composes an email with the SAP document as an attachment and delivers it to the configured recipients. Emails are sent from a FileRelay managed address through authenticated SMTP infrastructure. Delivery status is tracked and visible in the FileRelay activity log.
The document always travels as a real attachment. For very large files, prefer a storage destination (SharePoint, Box, S3) with an email notification instead of a giant attachment.
Metadata mapping
Mapped enrichment key-values travel as X-FileRelay-* message headers (e.g. X-FileRelay-invoice_no). * → * sends all keys unchanged; otherwise only listed keys pass. Empty mapping adds no headers.
Configuration
Recipients
The to field accepts one or more email addresses separated by commas:
ap-team@company.com, invoices@partner.com, john.doe@example.com
All recipients receive the same email with the document attached.
Subject Line
The subject field supports {{double-brace}} placeholders that are replaced at send time:
| Placeholder | Description | Example Value |
|---|---|---|
{{doc_id}} |
FileRelay document ID | 4500012345 |
{{file}} |
File name with extension | 4500012345.pdf |
{{repo}} |
Repository code | AL1 |
{{repo_name}} |
Repository description | Vendor Invoices |
{{sap_object}} |
Combined SAP type/id | BKPF/5012345 |
{{sap_object_type}} |
SAP object type | BKPF |
{{sap_object_id}} |
SAP object id | 5012345 |
{{date}} |
Archive date (YYYY-MM-DD) | 2026-04-04 |
{{datetime}} |
Received timestamp (ISO 8601) | 2026-04-04T10:15:00+00:00 |
{{mime}} |
MIME type | application/pdf |
{{size}} |
Human-readable file size | 1.2 MB |
{{workspace}} |
Workspace name | Production |
Example subject:
SAP {{sap_object_type}} {{sap_object_id}} from {{repo_name}}
Renders as: SAP BKPF 5012345 from Vendor Invoices
If left empty, FileRelay uses a default subject: FileRelay Document: {{file}}
Body Text
The body field supports the same placeholders as the subject. If left empty, FileRelay includes a default message with the document name, type, and source repository.
Attachment Details
| Property | Details |
|---|---|
| File name | Original SAP document name with extension |
| MIME type | Set automatically based on document format (PDF, XML, TIFF, etc.) |
| Size limit | Provider-dependent — keep attachments modest; use storage + notification for large files |
| Encoding | Base64 (standard email attachment encoding) |
Email Deliverability
FileRelay sends emails through managed infrastructure with full email authentication:
| Protocol | Purpose |
|---|---|
| SPF | Authorizes FileRelay's sending servers for the sender domain |
| DKIM | Cryptographically signs emails to prevent tampering |
| DMARC | Aligns SPF and DKIM for receiving server validation |
These protocols ensure high deliverability and prevent emails from being flagged as spam.
Tips
- Allowlisting — If recipients report that FileRelay emails land in spam or quarantine, ask them to add the FileRelay sending domain to their email allowlist or safe senders list.
- Multiple recipients — All recipients see each other's email addresses (similar to the "To" field in regular email). For privacy, create separate Email destinations for each recipient.
- Delivery tracking — Email delivery status (sent, delivered, bounced) is tracked in the FileRelay activity log. Failed deliveries are retried automatically with exponential backoff.
- No reply handling — Emails are sent from a no-reply address. Include a contact address in the email body if you want recipients to be able to respond.
- Large documents — there is no built-in download-link fallback; the file is always attached. For large files use a storage destination and notify by email or webhook.
- Compliance considerations — Email content, including attachments, may traverse public internet infrastructure. For sensitive or regulated documents, consider using an encrypted storage connector (e.g. SharePoint, Box) with a sharing notification instead.
- Rate limits — FileRelay enforces sending rate limits to maintain deliverability reputation. For very high-volume email delivery, contact FileRelay support to discuss your requirements.
Configuration Fields
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | Required | Recipient email addresses (comma-separated for multiple) |
| subject | string | Optional | Email subject line (supports placeholders) |
| body | string | Optional | Email body text (supports placeholders) |
| metadata_mapping | object | Optional | Map enrichment keys to X-FileRelay-* headers (* to * sends all) |
Ready to set up Email?
Create a free account and add this connector in under 2 minutes.