How can I add a specific email recipient to my sha

2019-06-10 02:54发布

So, I'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?

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-06-10 03:41

I found the answer here: ShareKit

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

查看更多
看我几分像从前
3楼-- · 2019-06-10 03:48

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];
查看更多
登录 后发表回答