I'm evaluating mail.dll and I'm having some problem using the library in a xamarin forms project. Mail.dll method is running in a shared netstandard class. If I call
new Imap() I get the following exception:
System.TypeInitializationException: The type initializer for ' ' threw an exception.
Inner exception is:"Value cannot be null.\nParameter name: path1
Stacktrace: at Limilabs.Client.IMAP.IDInformation. () [0x00005] in <0da134701e424efcb50b350803122fd3>:0
at Limilabs.Client.IMAP.Imap..ctor (System.Net.Sockets.AddressFamily addressFamily) [0x00032] in <0da134701e424efcb50b350803122fd3>:0
at Limilabs.Client.IMAP.Imap..ctor ()
Same thing happens if I just call
new Pop3(). Everything works as expected if I call the netstandard library from a WPF project. Maybe I'm missing some libraries. I cannot find any xamarin example.