Comments (5)
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.
Call System.Text.Encoding.RegisterProvider (System.Text.CodePagesEncodingProvider.Instance);
at program startup.
from mailkit.
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)
-
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.
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.
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)
- GMail - remove label from mailbox HOT 2
- `Sender` from a gmail group alias doesn't work? HOT 4
- Retrieving a list of all subfolders returns only subscribed subfolders HOT 6
- Exception on IMapFolder.FetchAsync HOT 4
- ImapClient CountChange USE HOT 5
- Unable to connect to smtp.office365.com HOT 2
- I need help regarding IMAP (Stopping, filtering messages etc.) HOT 14
- Is this the correct way to combine 4 SearchQuery in AND? HOT 1
- Receiving SSL Errors after connecting 100's ImapClients at the same time imap.gmail.com HOT 3
- MailKit fails on Unicode password HOT 4
- How can I receive a IMAP message with meta data and message (text and html), but without attachments HOT 2
- Does ImapFolder.MessageFlagsChanged report the UniqueId constantly? HOT 1
- Questions to Pop3Client.DeleteMessage HOT 1
- How to transfer an "inline" image via SmtpClient.Send HOT 4
- Fetching mails from outlook.com with IMAP fails HOT 3
- Possible to retrieve message that includes flags, from address, subject, and body content HOT 5
- ImapClient.ConnectAsync fails in v4.2.0: Syntax error in CAPABILITIES. Unexpected token: '+' HOT 10
- Syntax error in CAPABILITIES. Unexpected token: '+' HOT 2
- Multiple recipients - Mail send failure HOT 1
- Suddenly all communication between MAilkit devlopment and server government stops HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailkit.