GroupDocs.Conversion provides EmailConvertOptions for converting between email formats. Important: EmailConvertOptions is specifically for email-to-email format conversions (e.g., MSG to EML), not for converting general documents to email formats.
Use Case: Enterprise email systems, Outlook integration
EML (Electronic Mail Format)
EML is the standard RFC-822 email format:
Advantages: Universal compatibility, plain text based
Platform: Cross-platform (Thunderbird, Windows Mail, macOS Mail, webmail)
Use Case: Email archival, cross-platform compatibility, email backups
EMLX (Apple Mail Format)
EMLX is Apple’s implementation of the EML standard:
Advantages: Optimized for macOS Mail, includes additional metadata
Platform: macOS Mail application
Use Case: Mac-specific email workflows, Apple ecosystem integration
Common Use Cases
1. Email Migration
Migrate email archives between different email clients:
// Convert Outlook MSG archive to standard EML for cross-platform useusing(varconverter=newConverter("archive-2024.msg")){varoptions=newEmailConvertOptions{Format=EmailFileType.Eml};converter.Convert("archive-2024.eml",options);}
2. Platform Migration
Move from Windows Outlook to macOS Mail:
// Convert MSG emails to EMLX for Apple Mailusing(varconverter=newConverter("important-emails.msg")){varoptions=newEmailConvertOptions{Format=EmailFileType.Emlx};converter.Convert("important-emails.emlx",options);}
3. Email Standardization
Convert proprietary formats to standards-based formats:
// Standardize various email formats to EMLusing(varconverter=newConverter("meeting-notes.msg")){varoptions=newEmailConvertOptions{Format=EmailFileType.Eml};converter.Convert("meeting-notes.eml",options);}
4. Email Client Compatibility
Ensure emails can be opened in different email clients:
// Convert EML to MSG for Outlook usersusing(varconverter=newConverter("customer-feedback.eml")){varoptions=newEmailConvertOptions{Format=EmailFileType.Msg};converter.Convert("customer-feedback.msg",options);}
When to Use EmailConvertOptions
Use EmailConvertOptions when you need to:
Migrate email systems between different platforms (Outlook ↔ Apple Mail ↔ Thunderbird)
Archive emails in standard formats for long-term storage
Ensure compatibility across different email clients
Convert between formats for workflow integration
Standardize email formats within an organization
Support multi-platform email access
Limitations
Email-to-Email Only
EmailConvertOptions is not for converting general documents to email formats:
// ❌ This will NOT work - cannot convert PDF to email formatusing(varconverter=newConverter("document.pdf")){varoptions=newEmailConvertOptions{Format=EmailFileType.Msg};converter.Convert("document.msg",options);// ConversionNotSupportedException}
Supported Source Formats
EmailConvertOptions works with:
Email formats converting to other email formats
Some format combinations may not be supported (e.g., MSG to MBOX)
Converting Emails to Other Formats
To convert email messages to documents (PDF, DOCX, etc.), use the appropriate ConvertOptions for the target format:
// ✅ Convert email to PDFusing(varconverter=newConverter("message.msg")){varoptions=newPdfConvertOptions();converter.Convert("message.pdf",options);}// ✅ Convert email to Word documentusing(varconverter=newConverter("newsletter.eml")){varoptions=newWordProcessingConvertOptions();converter.Convert("newsletter.docx",options);}
Best Practices
Choose the right target format:
Use EML for maximum cross-platform compatibility
Use MSG for Outlook-specific workflows
Use EMLX for macOS Mail integration
Test format combinations:
Not all email-to-email conversions are supported
Verify your specific conversion path works before batch processing
Preserve email structure:
Email formats preserve headers, attachments, and metadata differently
Test conversions to ensure critical information is retained
Handle attachments appropriately:
Email attachments are typically preserved during format conversion
Use AttachmentContentHandler for custom attachment processing needs
Summary
EmailConvertOptions provides control over email format conversions:
Email-to-Email conversions: Convert between MSG, EML, EMLX, and other email formats
Platform migration: Move emails between different email clients and platforms
Format standardization: Convert proprietary formats to standards-based formats
Important limitation: Cannot convert general documents to email formats
All examples on this page have been verified through automated testing to ensure accuracy.