# Load Email document with options Learn this article and check how to load and convert Email documents with advanced options using GroupDocs.Conversion for .NET API. [**GroupDocs.Conversion**](https://products.groupdocs.com/conversion/net) provides the [EmailLoadOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions) class to give you control over how the source email document will be processed. The following options could be set: | Option | Description | |--------|-------------| |**[Format](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/format)** | The document type is auto-detected during loading, however, you can specify explicitly the type of the source email document. Available options are: Msg, Eml, Emlx, Pst, Ost, Vcf, Mht | |**[ConvertOwned ](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/convertowned)** | Controls whether the owned documents in the documents container must be converted | |**[ConvertOwner](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/convertowner)** | Controls whether the documents container itself must be converted If this property is true the documents container will be the first converted document | |**[Depth](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/depth)** | Controls how many levels in depth to perform the conversion | |**[DisplayBccEmailAddress](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/displaybccemailaddress)** | Option to display or hide "Bcc" email address | |**[DisplayCcEmailAddress](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/displayccemailaddress)** | Option to display or hide "Cc" email address | |**[DisplayEmailAddresses](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/displayemailaddresses)** | Option to display or hide the email addresses next to the names, for example `John Doe ` or only `John Doe`. Default: true. | |**[DisplayFromEmailAddress](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/displayfromemailaddress)** | Option to display or hide "from" email address | |**[DisplayHeader](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/displayheader)** | Option to display or hide the email header | |**[DisplayToEmailAddress](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/displaytoemailaddress)** | Option to display or hide "to" email address | |**[FieldTextMap](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/fieldtextmap)** | The mapping between email message [EmailField](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailfield) and field text representation | |**[PreserveOriginalDate](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/preserveoriginaldate)** | defines whether to keep the original date header string in the mail message when saving (Default value is true) | |**[ExternalResourceHandler](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/externalresourcehandler)** | A handler called for each resource the message asks to load; it can allow the resource, skip it or supply its content. Default: null. Available since version 26.10. | |**[ResourceLoadingTimeout](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/resourceloadingtimeout/)** | Specifies the timeout of loading the external resources. | |**[SkipExternalResources](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/skipexternalresources)** | Whether to skip the external resources the message references, such as remote images. Default: true. Content the message carries, local files inside its folder and resources that match `WhitelistedResources` still load. See [Skip loading of external resources]({{< ref "conversion/net/developer-guide/advanced-usage/loading/skip-external-resources.md" >}}). | |**[WhitelistedResources](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/whitelistedresources)** | Absolute URI prefixes, such as `https://cdn.example.com/assets/`, of external resources to load while `SkipExternalResources` is true. Since version 26.10, an entry that is not an absolute URI prefix makes the load fail with `InvalidLoadOptionsException`. | |**[TimeZoneOffset](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/emailloadoptions/timezoneoffset)** | Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC. | ### Control fields visibility The following code snippet shows how to convert an Email document and control the visibility of the fields: ```csharp Func getLoadOptions = loadContext => new EmailLoadOptions { DisplayHeader = false, DisplayFromEmailAddress = false, DisplayToEmailAddress = false, DisplayCcEmailAddress = false, DisplayBccEmailAddress = false }; using (Converter converter = new Converter("sample.msg", getLoadOptions)) { PdfConvertOptions options = new PdfConvertOptions(); converter.Convert("converted.pdf", options); } ``` ### Converting email attachments The following code snippet shows how to convert an Email document and all attachments: ```csharp var source = "sample-with-attachment.eml"; var loadOptions = new EmailLoadOptions { ConvertOwner = true, ConvertOwned = true, // convert email itself and the attachments Depth = 2 }; using (var converter = new Converter(source, (LoadContext loadContext) => loadOptions)) { var index = 1; var options = new PdfConvertOptions(); // Note: index = 1 is the email itself, all following indexes are attachments converter.Convert((SaveContext saveContext) => new FileStream($"converted-{index++}.{saveContext.TargetFormat.Extension}", FileMode.Create) , options); } ``` ### Localize email fields captions The following code snippet shows how to convert an Email document and localize the Email fields: ```csharp var source = "sample.eml"; var loadOptions = new EmailLoadOptions { FieldTextMap = new Dictionary { { EmailField.Subject, "Gegenstand" }, { EmailField.From, "Von" }, { EmailField.Attachments, "Anhänge" } } }; using (var converter = new Converter(source, (LoadContext loadContext) => loadOptions)) { var options = new PdfConvertOptions(); converter.Convert("converted.pdf" , options); } ``` ### Control date/time format The following code snippet shows how to convert an Email document and modify the date/time format: ```csharp var source = "sample.eml"; CultureInfo.CurrentCulture = new CultureInfo("fr-FR"); using (var converter = new Converter(source)) { var options = new PdfConvertOptions(); converter.Convert("converted.pdf" , options); } ```