有没有办法从我的iPhone应用程序中发送邮件?

时间:2023-01-25 07:37:50

I want to send an email from within my iPhone application, primarily because i don't want to quit my application. Is there ANY way to do that?

我想从我的iPhone应用程序中发送电子邮件,主要是因为我不想退出我的应用程序。有没有办法做到这一点?

Solution:

1) I found this open source API which does that: http://code.google.com/p/skpsmtpmessage/

1)我找到了这个开源API:http://code.google.com/p/skpsmtpmessage/

Anyone can write their own smtp client for this purpose. (If you can invest that much time - that is)

任何人都可以为此目的编写自己的smtp客户端。 (如果你能投入那么多时间 - 那就是)

2) Use a web service to send the message details and handle message sending functionality at server end.

2)使用Web服务在服务器端发送消息详细信息并处理消息发送功能。

Thanks.

2 个解决方案

#1


  • Install subversion on your Mac, as well as the command line tools, there are a variety of GUI wrappers available with a a little Googling.
  • 在Mac上安装subversion,以及命令行工具,有一些Googling可用的各种GUI包装器。

  • If you click the "source" tab on that project you'll see instructions for obtaining the source with subversion
  • 如果单击该项目上的“源”选项卡,您将看到使用subversion获取源的说明

#2


The iPhone SDK 3.* has support sending email from with-in your application. Other than that, i found two other solutions that can be used as alternatives (though with iPhone SDK 3.*, not recommended):

iPhone SDK 3. *支持从您的应用程序发送电子邮件。除此之外,我发现另外两个可以用作替代品的解决方案(虽然使用iPhone SDK 3. *,不推荐):

1) I found this open source API which does that: http://code.google.com/p/skpsmtpmessage/

1)我找到了这个开源API:http://code.google.com/p/skpsmtpmessage/

Anyone can write their own smtp client for this purpose. (If you can invest that much time - that is)

任何人都可以为此目的编写自己的smtp客户端。 (如果你能投入那么多时间 - 那就是)

2) Use a web service to send the message details and handle message sending functionality at server end.

2)使用Web服务在服务器端发送消息详细信息并处理消息发送功能。

#1


  • Install subversion on your Mac, as well as the command line tools, there are a variety of GUI wrappers available with a a little Googling.
  • 在Mac上安装subversion,以及命令行工具,有一些Googling可用的各种GUI包装器。

  • If you click the "source" tab on that project you'll see instructions for obtaining the source with subversion
  • 如果单击该项目上的“源”选项卡,您将看到使用subversion获取源的说明

#2


The iPhone SDK 3.* has support sending email from with-in your application. Other than that, i found two other solutions that can be used as alternatives (though with iPhone SDK 3.*, not recommended):

iPhone SDK 3. *支持从您的应用程序发送电子邮件。除此之外,我发现另外两个可以用作替代品的解决方案(虽然使用iPhone SDK 3. *,不推荐):

1) I found this open source API which does that: http://code.google.com/p/skpsmtpmessage/

1)我找到了这个开源API:http://code.google.com/p/skpsmtpmessage/

Anyone can write their own smtp client for this purpose. (If you can invest that much time - that is)

任何人都可以为此目的编写自己的smtp客户端。 (如果你能投入那么多时间 - 那就是)

2) Use a web service to send the message details and handle message sending functionality at server end.

2)使用Web服务在服务器端发送消息详细信息并处理消息发送功能。