开发者

How can I add a specific email recipient to my sharekit item?

开发者 https://www.devze.com 2023-04-10 14:02 出处:网络
So, I\'开发者_StackOverflow中文版m using sharekit to share some text.I need to be able to send the email to a pre-defined recipient.How can I set the mail recipient to the sharekit item?Sharekit has n

So, I'开发者_StackOverflow中文版m using sharekit to share some text. I need to be able to send the email to a pre-defined recipient. How can I set the mail recipient to the sharekit item?


Sharekit has now implemented this. You can use the example below.

NSURL *url = [NSURL URLWithString:@"Your URL"];
SHKItem *item = [SHKItem URL:url title:@"Your title" contentType:SHKURLContentTypeUndefined];

NSArray *recipientArray = [NSArray arrayWithObjects:@"mail@example.com",nil];
[item setMailToRecipients:recipientArray];

[SHKMail shareItem:item];


I found the answer here: ShareKit

UPDATE: Sharekit has an update that takes care of this now. See the newly accepted answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号