How can I send mail from an iPhone application

前端 未结 11 1731
甜味超标
甜味超标 2020-11-22 11:47

I want to send an email from my iPhone application. I have heard that the iOS SDK doesn\'t have an email API. I don\'t want to use the following code because it will exit my

11条回答
  •  隐瞒了意图╮
    2020-11-22 12:23

    If you want to send email from your application, the above code is the only way to do it unless you code your own mail client (SMTP) inside your app, or have a server send the mail for you.

    For example, you could code your app to invoke a URL on your server which would send the mail for you. Then you simply call the URL from your code.

    Note that with the above code you can't attach anything to the email, which the SMTP client method would allow you to do, as well as the server-side method.

提交回复
热议问题