How to attach files using NSSharingService

527 views Asked by At

I am preparing a Mail using NSSharingService. I mainly followed the advice given here: NSSharingService to send email and read email body

Effectively I am calling

[self.emailSharingService performWithItems:shareItems];

where shareItems is an NSArray containing one NSString object (the body) and several NSURL objects (the attachements)

With AppleMail the preparation of the mail works fine (e.g. body & attachments) but unfortunately the attachments are not added if I use another mail client (e.g. Thunderbird, Spark)

Does anyone know how I can achieve the addition of the attachments in other mail clients than AppleMail?

0

There are 0 answers