How to send an email to a receipent in background in iOS5?

后端 未结 8 567
不知归路
不知归路 2020-12-10 15:41

In an iPhone app,I want to send an email to a person who has forgotten about their passcode . I want to send the mail in background (cant use MFMailComposeViewController for

8条回答
  •  庸人自扰
    2020-12-10 16:01

    You can't use MFMailComposeViewController to do this. No API will allow you to send emails or any kind of message on behalf of the user without he seeing it.

    The only I see is to make a call to your server and the server send the email, something like this:

    NSURLRequest requestWithURL:[NSURL urlWithString:@"http://server.com/send_passcode?to=email@lala.com"]];
    

提交回复
热议问题