---
title: "Aspose::Email::Mapi::MapiAttachment::LoadFromTnef method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapiattachment/loadfromtnef/"
product: "Aspose.Email for C++"
description: "Load MapiAttachment from stream with tnef content."
---


## LoadFromTnef (1 of 2) {#loadfromtnef_1}

Load MapiAttachment from stream with tnef content.

**Returns:** MapiAttachment

```cpp
LoadFromTnef(System::SharedPtr < System::IO::Stream > stream)
```

| Parameter | Description |
| --- | --- |
| stream | Source stream |

---

## LoadFromTnef (2 of 2) {#loadfromtnef_2}

Load MapiAttachment from file with tnef content.

**Returns:** MapiAttachment

```cpp
LoadFromTnef(System::String fileName)
```

| Parameter | Description |
| --- | --- |
| fileName | Source file path. |

