Crosslight Mail Service

9 replies. Last post: September 4, 2014 11:24 PM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I was just trying to send a mail with an attachment and it failed. I send the mail via GMail and after composing the mail and switching to GMail everything seams to be there, even the attachment. But when I send the mail it says "attachment could not be send". I receive the mail with Outlook, but without the attachment.

Here is my code:

public void SendMail()
{
string data = this.GetDataAsString();
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(data);

ObservableCollection<MailAttachment> mailAttachments = new ObservableCollection<MailAttachment>();
mailAttachments.Add(new MailAttachment("export.csv", "text/csv", bytes));

MailMessage mailMessage = new MailMessage(" "mail@mail.com", "Subject", "Body", true, mailAttachments);

this.MobileService.Mail.ComposeMail(mailMessage, result2 =>
{
});
}

I have to following permissions set:

android.permission.WRITE_EXTERNAL_STORAGE

android.permission.ACCESS_NETWORK_STATE

android.permission.INTERNET

Any ideas?

Thanks,

Thomas

All times are GMT -5. The time now is 9:05 PM.
Previous Next