R ruhi macrumors member Original poster Jun 17, 2009 70 0 Aug 3, 2010 #1 Hello, I want to send mail from my iphone application with the help of Mail.app which is already there in iphone. How can i do it? Thanks , Ruhi
Hello, I want to send mail from my iphone application with the help of Mail.app which is already there in iphone. How can i do it? Thanks , Ruhi
dejo Moderator emeritus Sep 2, 2004 15,982 454 The Centennial State Aug 3, 2010 #2 https://forums.macrumors.com/threads/981077/ https://forums.macrumors.com/threads/937505/ https://forums.macrumors.com/threads/615610/ https://forums.macrumors.com/threads/914919/ ...
https://forums.macrumors.com/threads/981077/ https://forums.macrumors.com/threads/937505/ https://forums.macrumors.com/threads/615610/ https://forums.macrumors.com/threads/914919/ ...
N newtoiphonesdk macrumors 6502a Jul 30, 2010 567 2 Aug 3, 2010 #3 Create an IBAction called email in the .h of the View you would like to email from. Then in the .m put in the following code: Code: - (IBAction)email { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://example@yahoo.com"]]; } Then you can go in IB and create a Round Rect Button and connect the action to the button using Touch Up Inside. How hard was it for me to type in that code instead of sending the person to links that don't helP? Not very hard at all.
Create an IBAction called email in the .h of the View you would like to email from. Then in the .m put in the following code: Code: - (IBAction)email { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://example@yahoo.com"]]; } Then you can go in IB and create a Round Rect Button and connect the action to the button using Touch Up Inside. How hard was it for me to type in that code instead of sending the person to links that don't helP? Not very hard at all.