Jelajahi Produk kami

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.Email untuk .NET 22.2.0

Unduh  Forum Dukungan 

Detail File

  • Unduhan:
  • 18
  • Ukuran File:
  • 51.7 MB
  • Posted By:
  • DmitryS
  • Tampilan:
  • 60
  • Tanggal Ditambahkan:
  • 2/28/2022

Detail File

Penanganan TNEF yang Lebih Baik melalui API

Sebelumnya dalam beberapa kasus, format lampiran email TNEF (Transport Neutral Encapsulation Format) mengalami masalah dengan badan teks biasa. Masalah ini telah diselesaikan dalam versi API saat ini.

// The path to the File directory.
string dataDir = RunExamples.GetDataDir_Email();

MsgLoadOptions options = new MsgLoadOptions();
options.PreserveTnefAttachments = true;
MailMessage eml = MailMessage.Load(dataDir + "EmbeddedImage1.msg", options);
foreach (Attachment attachment in eml.Attachments)
{
    Console.WriteLine(attachment.Name);
}

Dukungan Lampiran Referensi

Dukungan untuk lampiran referensi telah diterapkan di API. Jika Anda ingin memiliki kontrol yang lebih baik atas akses lampiran, lampiran referensi dapat lebih disukai sebagai pengganti lampiran file lokal.

var eml = MailMessage.Load("fileName");

var refAttach = new ReferenceAttachment("https://[attach_uri]")
{
    Name = "Document.docx",
    ProviderType = AttachmentProviderType.OneDrivePro,
    PermissionType = AttachmentPermissionType.AnyoneCanEdit
};

eml.Attachments.Add(refAttach);

Peningkatan Dukungan untuk Konversi EML ke PST

Dalam beberapa contoh sebelumnya, terlihat bahwa ketika file EML dikonversi dari PST, lampiran referensi email tidak ditampilkan. Masalah ini sekarang telah diselesaikan.

Cuplikan kode C# berikut menunjukkan konversi format EML ke PST sederhana melalui API:

using (var message = MailMessage.Load("sourceFile.eml")){
    using (var personalStorage = PersonalStorage.Create("outputFile.pst", FileFormatVersion.Unicode)){

        var inbox = personalStorage.RootFolder.AddSubFolder("Inbox");

        inbox.AddMessage(MapiMessage.FromMailMessage(message, MapiConversionOptions.UnicodeFormat));
	}
}

Untuk daftar lengkap fitur, peningkatan, dan perbaikan bug dalam rilis ini, kunjungi Aspose.Email for .NET 22.2 Release Notes.

 Indonesia