How to send email from iPhone app without user interface
问题 I want my app to be able to send an email with attachment to a hard-coded recipient with no user input required, unlike the MessageUI framework. Is there any way to do this? Any example code would be appreciated. Thanks in advance. 回答1: As Saurabh said, there is no low level mail library. I would look for an SMTP library, rather than an IMAP one, because you don't need to get mail, just sent it. Attachments can be done with MFMailComposeViewController's via -(void)addAttachmentData:(NSData *