<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aspose.Email</title>
    <description>The latest articles on DEV Community by Aspose.Email (@aspose_email).</description>
    <link>https://dev.to/aspose_email</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F1498%2Fcaeb9a28-dca7-4f84-a7de-0368e707e8fd.png</url>
      <title>DEV Community: Aspose.Email</title>
      <link>https://dev.to/aspose_email</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aspose_email"/>
    <language>en</language>
    <item>
      <title>Not to be a snail, use AMP HTML email 🐌</title>
      <dc:creator>Artemiy Gazizyanov</dc:creator>
      <pubDate>Tue, 26 Nov 2019 14:11:00 +0000</pubDate>
      <link>https://dev.to/aspose_email/not-to-be-a-snail-use-amp-html-email-1mpm</link>
      <guid>https://dev.to/aspose_email/not-to-be-a-snail-use-amp-html-email-1mpm</guid>
      <description>&lt;p&gt;As you may know, Google announced AMP HTML email, which can be very useful to increase email’s performance. I want to shed light on this feature in &lt;strong&gt;&lt;a href="https://products.aspose.com/email/family?utm_source=https://dev.to/&amp;amp;utm_medium=email&amp;amp;utm_campaign=amp-html-in-emails"&gt;Aspose.Email&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is AMP HTML for email?
&lt;/h2&gt;

&lt;p&gt;Imagine, if emails could provide dynamic content, with the ability to update data included in emails? 😊 &lt;br&gt;
As you know, email messages are static and don’t change after they were sent. But, in the fast-pacing world of technologies, we are used to rapid progress. So, it's time for email messages to change too!&lt;br&gt;
With AMP HTML email, its content can be updated after the email was sent, ensuring timeliness and relevancy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AMP (Accelerated Mobile Pages)&lt;/strong&gt; is a developer’s package from Google for developing a lightweight system with more rapid loads. AMP is a framework made up with HTML, JavaScript and CSS - a standard to create user-first web content.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why AMP HTML for email?
&lt;/h2&gt;

&lt;p&gt;APM HTML technology is based on web technologies, so you won’t get lost in it. It provides own validator and a set of custom elements to empower basic HTML.&lt;/p&gt;

&lt;p&gt;Using AMP HTML email allows to increase the interactivity of your messages and add more usability. Now you can do some actions within the email interface, like: fill out questionnaires or schedule appointments, add photo carousels, include last news and RSVP to an online event, such as meetings or webinars, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed up emails with AMP HTML
&lt;/h2&gt;

&lt;p&gt;By using parts of Google’s AMP Project for email, &lt;strong&gt;&lt;a href="https://products.aspose.com/email/family?utm_source=https://dev.to/&amp;amp;utm_medium=email&amp;amp;utm_campaign=amp-html-in-emails"&gt;Aspose.Email&lt;/a&gt;&lt;/strong&gt; increases messages download speed, that is especially critical while working with mobile users.&lt;/p&gt;

&lt;p&gt;AMP HTML also gives applications a way to cache and serve content with great efficiency. &lt;br&gt;
You can see the code snippet, which demonstrates creating, saving, and updating AMP Emails using Aspose.Email API &lt;strong&gt;&lt;a href="https://docs.aspose.com/display/emailnet/working+with+amp+html+emails#workingwithamphtmlemails-workingwithamphtmlemailsutm_source=https://blog.aspose.com/utm_medium=emailutm_campaign=amp-html-emails-in-aspose.email-v19.10?utm_source=https://dev.to/&amp;amp;utm_medium=email&amp;amp;utm_campaign=amp-html-in-emails"&gt;here&lt;/a&gt;&lt;/strong&gt;. 👈&lt;/p&gt;

&lt;p&gt;Aspose.Email API, also allows you to manipulate email storages, and to use this functionality you don’t need to install any other dependencies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Questions time.
&lt;/h3&gt;

&lt;p&gt;👇👇👇Please share your thoughts in the comments below.👇👇👇&lt;br&gt;
Do you already use AMP HTML emails?&lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>csharp</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Export Lotus Notes (.NSF) messages with Aspose.Email</title>
      <dc:creator>Artemiy Gazizyanov</dc:creator>
      <pubDate>Wed, 20 Nov 2019 12:12:08 +0000</pubDate>
      <link>https://dev.to/aspose_email/export-lotus-notes-nsf-messages-with-aspose-email-1mb8</link>
      <guid>https://dev.to/aspose_email/export-lotus-notes-nsf-messages-with-aspose-email-1mb8</guid>
      <description>&lt;h3&gt;
  
  
  What is IBM Notes?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;IBM (Lotus) Notes&lt;/strong&gt; and &lt;strong&gt;IBM Domino&lt;/strong&gt; are the client and server, which represents a collaborative client-server software platform. IBM Notes and Domino is a distributed document-oriented NoSQL database and messaging framework and a rapid application development environment that includes pre-built applications like email, calendar, and others. IBM Notes differs from its primary commercial competitors, like Microsoft Exchange, which are purpose-built applications for mail and calendaring that offer APIs for extensibility. The history of IBM Notes is spanning more than 30 years.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does Lotus consist of?
&lt;/h3&gt;

&lt;p&gt;IBM Notes provides plenty of useful functions, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Email&lt;/li&gt;
&lt;li&gt;Calendars&lt;/li&gt;
&lt;li&gt;To-do lists&lt;/li&gt;
&lt;li&gt;Contact management&lt;/li&gt;
&lt;li&gt;Discussion forums&lt;/li&gt;
&lt;li&gt;File sharing&lt;/li&gt;
&lt;li&gt;Microblogging&lt;/li&gt;
&lt;li&gt;Instant messaging&lt;/li&gt;
&lt;li&gt;Blogs&lt;/li&gt;
&lt;li&gt;User directories&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why did people choose it?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Lotus Notes&lt;/strong&gt; was one of the first applications providing business collaboration functions. When it was published in the 90s, it became an instrumental in turning "chat groups" and "message boards" into the right online collaboration workspaces as we know it now.&lt;/p&gt;

&lt;p&gt;By the way, before HTTPS was even invented, Lotus Notes &lt;strong&gt;provided its authentication certificate&lt;/strong&gt; for connecting to online data sources with encryption, which is called Lotus Notes ID. Therefore, Lotus Notes applications and databases were encrypted and could only be used &lt;strong&gt;by authorized users&lt;/strong&gt; by their Notes ID.&lt;/p&gt;

&lt;p&gt;Replication of Lotus Notes allowed keeping multiple copies of databases on various servers and local machines. It allowed developers to create rich text databases with variable length data records.&lt;/p&gt;

&lt;p&gt;So, we can highlight two main reasons why people were choosing it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt;. IBM Notes Domino scales down security risks for an organization more than MS Office does. As we know, MS Office attracts hackers with Office macros allowing malicious scripts that may run in Office to trigger crypto viruses or locally stored malware. Some people admit that IBM Domino is more secure, and others claim that now it is not popular enough to attract hackers' attention. The point is that using IBM Notes Domino is safer compared to MS Office.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Stability&lt;/strong&gt;. Lotus IBM Notes has a long history on the market. This software solution has remained stable for over 20 years, whick means that companies that have invested in working with this product can be calm about their investments.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Why do people move from IBM Notes?
&lt;/h3&gt;

&lt;p&gt;If everything is so good, you may ask, "Why people move from IBM Notes?".&lt;br&gt;
There are some reasons for that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The &lt;strong&gt;high cost&lt;/strong&gt; of IBM Lotus Notes solution.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I have found a chat message branch from 1997. And there is one main disadvantage that was accurate with Domino Server more than 20 years ago – &lt;strong&gt;large consumption of RAM&lt;/strong&gt;. Also, Lotus Notes requires more space on the system comparing with MS Outlook.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Problems with multitasking&lt;/strong&gt;. For example, if you try to sort a view in NSF file with 1000000 documents and read the mail while the sort finished, it can become &lt;em&gt;"mission impossible"&lt;/em&gt; as &lt;strong&gt;it cannot be done at the same time&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Problems with Lotus Notes Calendar&lt;/strong&gt;. If you receive many messages a day, you can miss an appointment, and you will miss a meeting. Because if you do not accept a meeting invite, it never shows up in the calendar view. You have to create a separate folder for meeting responses. If you accidentally delete the calendar document or response document – everything will disappear.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Popularity&lt;/strong&gt;. Comparing IBM Notes with MS Office, we can admit that Microsoft's solution is much more popular. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;IBM Notes &lt;strong&gt;doesn't look user-friendly&lt;/strong&gt;. More and more users are familiar with the Microsoft solution. This fact impacts on the speed of onboarding and degree of overall efficiency. New employees don't have to learn how to set a calendar appointment or send an email, which increases the productivity of the company. Some administrators find Notes Domino hard to administrate.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Integration issues&lt;/strong&gt;. SaaS model is very popular nowadays. There are many great tools available for many aspects of business. The greatest thing about SaaS is that it easily integrates with large software tools. If you are using IBM Notes server Domino, it can be a challenge to set up integration between the server and SaaS.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Configuration&lt;/strong&gt;. Other platforms come with a good central management right out of the box, while you have to spend a lot of time to configure IBM Notes Domino.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Moving Mailbox from IBM Notes.
&lt;/h3&gt;

&lt;p&gt;All the abovementioned points force to migrate from IBM Notes. And the first step - is migrating messages.&lt;/p&gt;

&lt;p&gt;All messages are stored in &lt;strong&gt;NSF storage&lt;/strong&gt;, which is initial storage in Domino Server. It’s hard to find information about NSF storage which makes hard to implement the data transferring from NSF storage.&lt;/p&gt;

&lt;p&gt;The main risk that you should remember is that &lt;strong&gt;migration can’t be accurate for 100% between platforms&lt;/strong&gt;. Files, attachments, data, settings, history, text layout can be corrupted or lost.&lt;/p&gt;
&lt;h3&gt;
  
  
  How to deal with NSF storage?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://products.aspose.com/email/family?utm_source=https://dev.to/aspose_email/&amp;amp;utm_medium=email&amp;amp;utm_campaign=ibm-lotus-notes-with-aspose.email"&gt;Aspose.Email&lt;/a&gt;&lt;/strong&gt; takes care of it. The API has versions for .NET, Java and others, implementing methods to work with NSF storage. Therefore, you don’t need to spend time and resources to implement them by yourself. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://products.aspose.com/email/family?utm_source=https://dev.to/aspose_email/&amp;amp;utm_medium=email&amp;amp;utm_campaign=ibm-lotus-notes-with-aspose.email"&gt;Aspose.Email&lt;/a&gt; provides &lt;strong&gt;NotesStorageFacility&lt;/strong&gt; class with &lt;strong&gt;EnumerateMessages&lt;/strong&gt; method to read NSF storage files. It iterates over the messages in the NSF storage file. The following sample code demonstrates how to use is for reading messages from the NSF storage file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-.NET&lt;/span&gt;
&lt;span class="c1"&gt;// The path to the File directory.&lt;/span&gt;
&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;dataDir&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;RunExamples&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetDataDir_Email&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NotesStorageFacility&lt;/span&gt; &lt;span class="n"&gt;nsf&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;NotesStorageFacility&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dataDir&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="s"&gt;"SampleNSF.nsf"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MailMessage&lt;/span&gt; &lt;span class="n"&gt;eml&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;nsf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;EnumerateMessages&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;eml&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;eml&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Subject&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="s"&gt;".eml"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;SaveOptions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultEml&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Similar Java-based example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-Java&lt;/span&gt;
&lt;span class="c1"&gt;// The path to the resource directory.&lt;/span&gt;
&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;dataDir&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Utils&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;getSharedDataDir&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;ReadMessagesFromNSFStorage&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s"&gt;"email/"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nc"&gt;NotesStorageFacility&lt;/span&gt; &lt;span class="n"&gt;nsf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;NotesStorageFacility&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dataDir&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s"&gt;"SampleNSF.nsf"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;MailMessage&lt;/span&gt; &lt;span class="n"&gt;eml&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;nsf&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;enumerateMessages&lt;/span&gt;&lt;span class="o"&gt;())&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
     &lt;span class="n"&gt;eml&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;Save&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;eml&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;Subject&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s"&gt;".eml"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;SaveOptions&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;DefaultEml&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
     &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
     &lt;span class="n"&gt;nsf&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;dispose&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To find more about usage of Aspose.Email you can vist &lt;a href="https://docs.aspose.com/display/emailnet/working+with+ibm+notes?utm_source=https://dev.to/aspose_email/&amp;amp;utm_medium=email&amp;amp;utm_campaign=export-lotus-notes-nsf-messages-with-aspose-email"&gt;Working with IBM Notes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can say: "Ok. But how can I move my messages from NSF to PST?"&lt;br&gt;
And this is a popular question.&lt;br&gt;
Don't worry! Here is a sample of how simple it can be with &lt;a href="https://products.aspose.com/email/family?utm_source=https://dev.to/aspose_email/&amp;amp;utm_medium=email&amp;amp;utm_campaign=ibm-lotus-notes-with-aspose.email"&gt;Aspose.Email&lt;/a&gt;.&lt;br&gt;
This library allows to work not only with NSF and PST formats but also with &lt;strong&gt;MSG&lt;/strong&gt;, &lt;strong&gt;OST&lt;/strong&gt;, &lt;strong&gt;OFT&lt;/strong&gt;, &lt;strong&gt;EML&lt;/strong&gt;, &lt;strong&gt;EMLX&lt;/strong&gt;, &lt;strong&gt;MBOX&lt;/strong&gt;, &lt;strong&gt;ICS&lt;/strong&gt;, &lt;strong&gt;VCF&lt;/strong&gt;, &lt;strong&gt;HTML&lt;/strong&gt;, &lt;strong&gt;MHTML&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-.NET&lt;/span&gt;
&lt;span class="c1"&gt;//Initialize NSF storage&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NotesStorageFacility&lt;/span&gt; &lt;span class="n"&gt;nsf&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;NotesStorageFacility&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"SampleNSF.nsf"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;//Initialize PST storage&lt;/span&gt;
    &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PersonalStorage&lt;/span&gt; &lt;span class="n"&gt;pst&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;PersonalStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"outputPST.pst"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;FileFormatVersion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Unicode&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;//Creating 'Inbox' folder in PST storage&lt;/span&gt;
        &lt;span class="n"&gt;FolderInfo&lt;/span&gt; &lt;span class="n"&gt;pstFolder&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pst&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;CreatePredefinedFolder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Inbox"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;StandardIpmFolder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Inbox&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

         &lt;span class="c1"&gt;//Run throught NSF storage&lt;/span&gt;
         &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MailMessage&lt;/span&gt; &lt;span class="n"&gt;eml&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;nsf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;EnumerateMessages&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
         &lt;span class="p"&gt;{&lt;/span&gt;
             &lt;span class="n"&gt;MapiMessage&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;MapiMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FromMailMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;eml&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

             &lt;span class="c1"&gt;//Adding message into the folder in PST storage&lt;/span&gt;
             &lt;span class="n"&gt;pstFolder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;
     &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;There are &lt;strong&gt;many other features&lt;/strong&gt; included in &lt;strong&gt;Aspose.Email API&lt;/strong&gt;. Here you can find out more &lt;a href="https://products.aspose.com/email/family?utm_source=https://dev.to/aspose_email/&amp;amp;utm_medium=email&amp;amp;utm_campaign=ibm-lotus-notes-with-aspose.email"&gt;details&lt;/a&gt;!&lt;br&gt;
When time allows, you can check out &lt;strong&gt;API examples&lt;/strong&gt; at &lt;a href="https://github.com/aspose-email/"&gt;Github&lt;/a&gt;. &lt;br&gt;
If you have any &lt;strong&gt;questions and other API related issues&lt;/strong&gt;, ask in our &lt;a href="https://forum.aspose.com/c/email?utm_source=https://dev.to/aspose_email/&amp;amp;utm_medium=email&amp;amp;utm_campaign=ibm-lotus-notes-with-aspose.email"&gt;forum&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>csharp</category>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>Outlook for Mac. How to convert OLM to PST?</title>
      <dc:creator>Artemiy Gazizyanov</dc:creator>
      <pubDate>Thu, 31 Oct 2019 10:50:33 +0000</pubDate>
      <link>https://dev.to/aspose_email/outlook-for-mac-how-to-convert-olm-to-pst-25p7</link>
      <guid>https://dev.to/aspose_email/outlook-for-mac-how-to-convert-olm-to-pst-25p7</guid>
      <description>&lt;h3&gt;
  
  
  Necessity
&lt;/h3&gt;

&lt;p&gt;On the one hand, we have Mac OS as the second most popular operating system. On the other hand, we have Outlook as one of the most popular personal information managers in the world. So, it was a question of time when we were able to use all functions of Outlook on Mac.&lt;/p&gt;

&lt;p&gt;Now we have Outlook for Mac OS provided by Microsoft Office. This application is a full-weight version of Outlook for Windows, but we can use it on Mac OS. There is only one difference. It is a storage file format. The version for Mac OS uses OML against PST on Windows.&lt;/p&gt;

&lt;p&gt;So one of the most prevalent problems to solve is converting from OML files to PST. That can be done for many reasons: to send data on a Windows machine for some processing or to save data according to the saving data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Save and protect your data
&lt;/h3&gt;

&lt;p&gt;One of the cases that users of Mac OS encounter are errors that occur when saving data and their further damage.&lt;br&gt;
It can be caused by compatibility between MAC OS and Outlook for Mac. When these two applications don’t synchronize as well. Then Outlook can give various error messages or exceptions like:&lt;br&gt;
&lt;strong&gt;“Microsoft Outlook must be closed because an error occurred. Any unsaved work may be lost.”&lt;br&gt;
“Sync pending for this folder”&lt;br&gt;
“attachments exceed the limit allowed please remove attachments, sync error code 17193”&lt;/strong&gt;🤦‍♂️&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do you save your outlook data and how do you do it?&lt;/strong&gt;&lt;br&gt;
Share your comments below! 👇👇👇&lt;/p&gt;

&lt;p&gt;You can go two ways:&lt;br&gt;
    1. You can try to fix them to handle the compatibility issues doing: continuous updating to the latest updates or to export all the Outlook data in the OLM files using the Export option.&lt;br&gt;
    2. Use &lt;a href="https://products.aspose.com/email?utm_source=https://dev.to/aspose_email/outlook-for-mac-how-to-convert-olm-to-pst-25p7&amp;amp;utm_medium=email"&gt;Aspose.Email&lt;/a&gt; library to convert OML files to PST to save data to protect it or transfer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;dst&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"SampleOLM.olm"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;//Initialize Olm storage&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;OlmStorage&lt;/span&gt; &lt;span class="n"&gt;storage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;OlmStorage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dst&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;//Initialize Pst storage&lt;/span&gt;
    &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PersonalStorage&lt;/span&gt; &lt;span class="n"&gt;pst&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;PersonalStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"output.pst"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;FileFormatVersion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Unicode&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;//Create only Inbox folder as an example&lt;/span&gt;
        &lt;span class="n"&gt;FolderInfo&lt;/span&gt; &lt;span class="n"&gt;pstFolder&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pst&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;CreatePredefinedFolder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Inbox"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;StandardIpmFolder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Inbox&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="c1"&gt;//Go through folders in the OLM storage&lt;/span&gt;
        &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;OlmFolder&lt;/span&gt; &lt;span class="n"&gt;folder&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;storage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;FolderHierarchy&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c1"&gt;//Check is this folder empty&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;HasMessages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                 &lt;span class="c1"&gt;// extract messages from folder&lt;/span&gt;
                 &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MapiMessage&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;storage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;EnumerateMessages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
                 &lt;span class="p"&gt;{&lt;/span&gt;
                     &lt;span class="c1"&gt;//Add message to the pst storage&lt;/span&gt;
                     &lt;span class="n"&gt;pstFolder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddMessage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                     &lt;span class="n"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Subject: "&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Subject&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                 &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This approach is secure because you don’t have to send your data to a third-party server; all processes take place on your machine.&lt;br&gt;
This library saves the integrity of the whole OLM file. Also, PST has a split feature that can allow users to divide a large PST file into smaller-sized PST files. &lt;/p&gt;

&lt;p&gt;After successful converting, the PST file can be saved on your machine or can be migrated to the Outlook for Windows or to the other applications which can support this file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do you often face similar problems and how do you solve them?&lt;/strong&gt;&lt;br&gt;
Leave your comments below. 👇👇👇&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>api</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
