Git Product home page Git Product logo

Comments (5)

fredericoregateiro avatar fredericoregateiro commented on June 8, 2024

After some searching i added the CJK encoding from the properties in the xamarin.android project and now i get this error:
No data is available for encoding 51936. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.

from mailkit.

jstedfast avatar jstedfast commented on June 8, 2024

Call System.Text.Encoding.RegisterProvider (System.Text.CodePagesEncodingProvider.Instance); at program startup.

from mailkit.

fredericoregateiro avatar fredericoregateiro commented on June 8, 2024

I would like to leave here some comments my experience in integrating this library in a xamarin project.

  • check the MailkitLite, the diference in size on my apk is almost 5MB. Here it could have some reference in the documentation, i didn't find any

  • always check the encodings in all configurations (debug and release)
    image

  • whe creating a mime message using var message = new MimeMessage(); i get this exceptions:
    System.NotSupportedException: 'No data is available for encoding 51936. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.'
    and
    System.NotSupportedException: 'No data is available for encoding 52936. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.'
    just continue and the email gets delivered.

from mailkit.

jstedfast avatar jstedfast commented on June 8, 2024

FWIW, Xamarin.iOS and Xamarin.Android are not going to be supported much longer by Microsoft (they have about another year of support).

They are recommending that everyone upgrade to Microsoft.iOS and Microsoft.Android which are the .NET 6.0/7.0/8.0 versions (and are the core of the MAUI platform).

Once you make that switch, you'll need to include the System.Text.Encoding.CodePages nuget and then in your program initialization, call:

System.Text.Encoding.RegisterProvider (System.Text.CodePagesEncodingProvider.Instance);

from mailkit.

jstedfast avatar jstedfast commented on June 8, 2024

MimeKitLite is a stripped-down version of MimeKit that eliminates almost everything from the MimeKit.Cryptography namespace. That's the only difference.

IOW, MimeKitLite loses S/MIME, PGP, and DKIM/ARC support.

Most people don't really need that stuff, so it's fine to go with MimeKitLite.

from mailkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.