电子邮件不工作在ShareKit,没有错误 [英] Email not working in ShareKit and no errors

查看:154
本文介绍了电子邮件不工作在ShareKit,没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ShareKit将Facebook,Twitter和电子邮件分享添加到我的iPhone应用程序。现在,Facebook和Twitter都在工作,但电子邮件不是。最大的问题是没有错误或任何东西,它是工作,就像它应该,但电子邮件不交付给收件人。这是我用来发送电子邮件

I am using ShareKit to add Facebook, Twitter and email sharing to my iPhone app. Now, Facebook and Twitter are working but email is not. The big problem is that there is no error or anything, it is working just like it should but the email is not delivered to the recipient. This is what I am using to send the email

[SHK setRootViewController:self];
SHKItem *item;
NSURL *url = [NSURL URLWithString:@"http://www.url.com/"];
item = [SHKItem URL:url title:@"Using sharekit to share urls...."];
[SHKMail shareItem:item];

我做错了什么?

EDIT:更多基于Joshua以下答案的信息。


  • 我在模拟器上测试,

  • [MFMailComposeViewController canSendMail]传回「是」,我可以通过在模拟器中打开safari,然后打开邮件和发送电子邮件,发送电子邮件。

  • 我没有对电子邮件进行任何配置。具有配置的SHKConfig.h没有任何配置电子邮件的选项。 (我添加了用于Twitter和Facebook的API密钥,并且他们从模拟器中工作)

推荐答案

只是一对夫妇的猜测(我没有使用ShareKit):

Just a quick couple of guesses (I haven't used ShareKit):


  1. 你在模拟器上测试设备? 邮件实际上不是从模拟器发送的。假设成功发送而不实际发送(这将解释无错误)。

  2. 如果您在设备上测试,确定您的电子邮件帐户正在处理设备?你可以从普通邮件客户端发送电子邮件吗?如果您有多个帐户,则应使用默认/第一个帐户,但应测试所有帐户。

  1. Are you testing on the simulator or a device? Mail doesn't actually get sent from the simulator. It fakes a successful send without actually sending (that'd explain "no error").
  2. If you're testing on the device, are you sure your e-mail account is working on the device? Can you send e-mail from the regular mail client? If you have multiple accounts, the default/first should be used but test all of them.

这篇关于电子邮件不工作在ShareKit,没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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