i am using this(MailForWindowsStore.dll) library in Unity3D for windows platform and i am getting this error while trying to create build.
Exception: Data error (cyclic redundancy check). (Exception from HRESULT: 0x80070017)
at Windows.Security.Cryptography.Core.CryptographicEngine.Decrypt(CryptographicKey key, IBuffer data, IBuffer iv)
at ? . (String encryptedText)
at ? . (String encrypted)
at .get_Windows1252()
at Limilabs.Client.ClientBase..ctor()
at Limilabs.Client.SMTP.Smtp..ctor()
And here is my code
using (Smtp smtp = new Smtp())
{
smtp.Connect("smtp.gmail.com", 587, true);
smtp.StartTLS();
smtp.Login("testmail@gmail.com", "test@123");
MailBuilder builder = new MailBuilder();
builder.Text = "text";
builder.From.Add(new MailBox("testmail@gmail.com"));
builder.To.Add(new MailBox("someone@gmail.com"));
MimeData attachment = builder.AddAttachment(capturedFile).Result;
attachment.ContentType = ContentType.ImageJpeg;
IMail email = builder.Create();
ISendMessageResult result = smtp.SendMessage(email);
if (result.Status == SendMessageStatus.Success)
{
// Message was sent.
Debug.LogError("sent mail successfully");
}
smtp.Close();
}