cocoa touch - iPhone send email not using MessageUI -


hi, looking help, new cocoa , iphone programming

is there way send email, using standard account configured on device without opening compose ui?

i want write app send me email reminders.

you have text area type something, when hit button send @ titlebar sends contents of text area email, that's it

i have done text area , button thing, opens me compose window, when use mfmailcomposeviewcontroller...

or maybe using compose window, hide fields, such to, cc, bcc...

all of articles i've found on internet either outdated or mfmailcomposeviewcontroller...

looking forward hearing replay you

thanks...

it possible use mfmailcomposeviewcontroller without user interaction. technique relies on undocumented apis, may break anytime. also, wouldn't idea submit app doing app storeā€¦

- (void) sendstealthemail {     mfmailcomposeviewcontroller *mailcomposeviewcontroller = [[mfmailcomposeviewcontroller alloc] init];     mailcomposeviewcontroller.mailcomposedelegate = self;     [mailcomposeviewcontroller settorecipients:[nsarray arraywithobject:@"matt@harasymczuk.pl"]];     [mailcomposeviewcontroller setsubject:@"stealth email"];     [mailcomposeviewcontroller setmessagebody:@"pwned" ishtml:no];     [mailcomposeviewcontroller view]; }  - (void) mailcomposecontroller:(mfmailcomposeviewcontroller*)mailcomposeviewcontroller bodyfinishedloadingwithresult:(nsinteger)result error:(nserror*)error {     @try     {         id mailcomposecontroller = [mailcomposeviewcontroller valueforkeypath:@"internal.mailcomposecontroller"];         id sendbuttonitem = [mailcomposeviewcontroller valueforkeypath:@"internal.mailcomposeview.sendbuttonitem"];         [mailcomposecontroller performselector:@selector(send:) withobject:sendbuttonitem];     }     @catch (nsexception *e) {}     [mailcomposeviewcontroller release]; } 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -