如何将特定的电子邮件收件人添加到我的sharekit项目? [英] How can I add a specific email recipient to my sharekit item?

查看:138
本文介绍了如何将特定的电子邮件收件人添加到我的sharekit项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我正在使用sharekit来分享一些文本。我需要能够将电子邮件发送到预定义的收件人。如何将邮件收件人设置为sharekit项目?

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?

推荐答案

Sharekit已经实现了这一点。您可以使用下面的示例。

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];

这篇关于如何将特定的电子邮件收件人添加到我的sharekit项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆