使用 MFMailCompose 应用内电子邮件卡在发件箱中
我正在使用 MFMailCompose 方法发送应用内电子邮件,一切正常。我将应用程序发送出去进行测试,这是我的 Beta 测试人员的回复。
- 我的手机是 3gs 32Gb,OS3.1.3
- 在家里通过 wifi 进行测试,发送工作没有问题,测试了两次。
- 再次通过 3g 进行测试,直到我打开邮箱才发送,仍然弹出错误。
有人遇到过这个吗?他的问题似乎只是在尝试通过 3g 发送时出现。它对我有用,但我使用的是不同的运营商。它必须是一个设置,但我们检查了所有内容。有人遇到过这个吗?
I'm using the MFMailCompose method to do an inApp email and everything works fine. I sent the app out to have it tested and here is the response from my beta tester.
- My phone is a 3gs 32Gb, OS3.1.3
- Tested at home over wifi, send works with no problems, tested twice.
- Tested again over 3g, send still does not occur until I open my mail box, error still pops up.
Has anyone come across this? His problem seems to be only when trying to send via 3g. It works for me but I'm with a difference carrier. It has to be a settings, but we checked everything. Has anyone come across this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它可以通过 Wi-Fi 而不是通过 3G 运行,则很可能是因为他的设备设置为通过外发邮件服务器(SMTP 服务器)发送邮件,该服务器根据您所连接的网络限制连接。
例如,如果您通过 FooBarNet 拥有宽带服务,他们可能会告诉您使用外发邮件服务器 smtp.foobar.net。如果您在家时连接到该网络,服务器将允许您发送邮件。但是,如果您尝试从另一个网络(例如,您的手机的数据网络)连接到它,它会拒绝连接,假设您试图劫持其邮件服务器来发送垃圾邮件。
换句话说,这与您的应用程序无关。您可以通过使用邮件应用程序直接发送邮件来验证这一点。
If it works over Wi-Fi and not over 3G, then it's most likely because his device is set to send mail through an outgoing mail server (SMTP server) that restricts connections based on the network you are connected to.
For example, if you have broadband service through FooBarNet, they might tell you to use an outgoing mail server smtp.foobar.net. If you connect to that network while you're at home, the server will allow you to send mail. But if you try to connect to it from another network (e.g., your cellular phone's data network) it will reject the connection, assuming you are trying to hijack its mail server to send spam.
In other words, this has nothing to do with your app. You can verify this by using the Mail app to send mail directly.