Hi Team,
App is crashing after launching email client with attachment (more than 400 kb) in android device using xamarin essential for email client.
Tried in native implementation as well, there also same result, sending txt file attachment.(using dependency service)
Please find the attached screenshot for your reference. Expecting the valuable suggestions.thanks in advance.
Below code for sending email:
List<string> recipients = new List<string>() { recipient }; var message = new Xamarin.Essentials.EmailMessage { Subject = subject, To = recipients, Body = "Body" }; var logFile = Path.Combine(FileSystem.CacheDirectory, FileName); File.WriteAllBytes(logFile, Encoding.ASCII.GetBytes(LogFileText)); message.Attachments.Add(new Xamarin.Essentials.EmailAttachment(logFile)); AddAttachments(message); ** await Email.ComposeAsync(message);** // after executing this app will crash.