objective c - How to send email from iPhone app without user interface -
i want app able send email attachment hard-coded recipient no user input required, unlike messageui framework.
is there way this? example code appreciated.
thanks in advance.
as saurabh said, there no low level mail library. smtp library, rather imap one, because don't need mail, sent it.
attachments can done mfmailcomposeviewcontroller's via -(void)addattachmentdata:(nsdata *)attachment mimetype:(nsstring *)mimetype filename:(nsstring *)filename
which believe base64 encodes data, , attached mime type header , footer.
check out question lots on topic: open source cocoa/cocoa-touch pop3/smtp library?
Comments
Post a Comment