mfmailcomposeviewcontroll

Using MFMailComposeViewController to send both HTML and Plain Text versions of email

How can I use MFMailComposeViewController to send both an HTML and fallback plain text version of an email? The API has a method for setting the message body as either/or, but not a way to specify both. I have seen other apps do it (such as Doodle Jump), so it must be possible. ...

MFMailComposeViewController Orientation in ipad

Hello, i am implemented MFMailComposeViewController in ipad application. It works great in Portrait mode. When i rotate it to Landscape mode its not completely fill the page. Is it possible to show the mail composer without any space. ...

Inapp email stuck in outbox using MFMailCompose

I'm using the MFMailCompose method to do an inApp email and everything works fine. I sent the app out to have it tested and here is the response from my beta tester. My phone is a 3gs 32Gb, OS3.1.3 Tested at home over wifi, send works with no problems, tested twice. Tested again over 3g, send still does not occur until I open my mail b...

What protocol does MFMailComposer use to send mail?

Hi, What protocol apple has used to send mail through MFMailComposer?SMTP or other Protocol? any help please? ...

Sorting text and attached images in MFMailCompositeViewController?

In the app I'm currently writing I'd like to populate the message body of an e-mail with a combination of text and images. It took me forever to find out that in order to get an embedded image, you had to have bold tags in the message body (...uhhh, yeah), otherwise the image just shows up as an attachment. But now I have the problem t...

iphone - inapp mail

I'm using in-app mail in my iphone app. I know how to show in-app mail using presentModalViewController. But I want to show it in applicationDidFinishLaunching, that means as soon as app launches. How can I do it. If I've to add in-app mail something like [self.view addSubView:picker.view], its not working. (where picker is object of MFM...

Problem with MFMailComposeViewController's "No mail accounts" alert - SDK 3.0 vs SDK 4.0

Hi all, I have a problem with this piece of code when I build it for different Base SDKs: MFMailComposeViewController *mail = nil; mail = [[MFMailComposeViewController alloc] init]; NSString *description = @"Some mail string"; if([MFMailComposeViewController canSendMail]) { mail.mailComposeDelegate =self; [mail setSubject:story...

presentModalViewController:picker not working in iPad MFMailComposeViewController.

Hi, i am using the following code for the mail composer sheet in iPad application. I used the same code for iPhone. It worked. I am writing the game in iPad using cocos2d. The game is in landScape mode. The control in EmailScene is stopping at [picker presentModalViewController:picker animated:YES]; It is not giving any error. Should I c...

How can I display mail composer in landscape mode by using MFMailComposeViewController in cocos2d ?

hi, I am writing a game in cocos2d. I want to add MFMailComposeViewController to the scene. So, when I touch a CcLabel in the scene the mail sheet is opened. @interface EmailScene : CCScene <MFMailComposeViewControllerDelegate> { MFMailComposeViewController *picker; } -(void)displayComposerSheet; @end @implementation EmailSce...

getting updated receipent and email body information from MFMailComposeViewController class

Hi friends, Is it possible to get updated receipent and email body information from MFMailComposeViewController in iphone sdk manually. And manually sending that data in json web service to my own mail box. Regards, sathish ...

Attaching plain text file using MFMailComposer in iPhone SDK

I've been trying to use MFMailComposer to send a text file with encrypted data within. The problem is my attachment never shows up when when the email arrives in the inbox. Instead, a line of "<br/><br/>" is always present. I'm assuming is has something to do with the mime type and the receivers mail server not know how to read the data ...

Losing touch events after MFMailComposerViewController is dismissed.

I'm calling a MFMailComposerViewController in my app and adding it as a subview to the UIView. When the user has finished with the e-mail I'm calling dismissModalViewControllerAnimated to remove it, but the app delegate no longer gets touch events and I don't know why. This only happens in OS 4.0+ though. ...

How can I append text to the bottom of my MFMailComposeViewController?

I would like to add the text "Sent from " to the bottom of the message if([MFMailComposeViewController canSendMail]){ MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; controller.mailComposeDelegate = self; [controller setSubject:[NSString stringWithFormat:@"A message from: %@",se...

How can I escape slashes and quotes in Objective-C?

I would like to do the following [controller setMessageBody:[NSString stringWithFormat:@"<strong>%@</strong> <br> <br> %@ <br><br> %@ <br><br> Sent From MyApp",self.articleTitle, self.articleDescription, self.articleURL] isHTML:YES]; on the last %@ I would like to do <a href="%@">Hello</a> But I am not sure how to escape it properly...

App crashes after exiting Mail Composer

My app is crashing shortly after closing a MFMailComposeViewController. A UIWebDocumentView is releasing, which deallocates a ComposeBodyField object and it crashes on objc_msgSend. It only happens some of the time, and only on old devices. I'm assuming that something is being release/cleaned up before it's supposed to, so when the mes...

MFMailComposeViewController does not send mail

Hi there, I am trying to send mail using MFMailComposeViewController. Everything works, except that mails do not get sent, and I always get MFMailComposeResultFailed. Any pointers? I am NOT using the simulator, and sending mail does work from my device. I do have a connection (testing via Reachability), and [MFMailComposeViewController...

MFMessageComposeViewController alloc returns nil

In my application, MFMailComposeViewController works fine but creating a new instance of MFMessageComposeViewController fails. Here is the code for both: -( IBAction)sendSMS: (id)sender { MFMessageComposeViewController *picker = [[[MFMessageComposeViewController alloc] init] autorelease]; picker.messageComposeDelegate = self; NSAr...

How to present a modal view controller on the iphone without a "current" view controller?

I'm trying to open the email view controller (MFMailComposeViewController), and everything I read suggests using presentModalViewController:animated:, which seems to need to be sent to a UIViewController. For example, in the documentation, it says: Call the presentModalViewController:animated: method of the current view controller, ...

MFMailComposeViewController crash on addAttachementData

Hi, I have an issue with sending an e-mail with the app logs(just a few times I've encounter this - when the logs where bigger).Could someone please tell me on what should I focus to solve this situation?Because I've no idea what could cause this.The app crash when sending a log which has 264 kb and the device frozen.After restart, I wa...

How can I use MailComposerViewController in an OpenGL ES based iPhone app?

I'm adding a "Tell a friend" feature to an OpenGL ES based iPhone app. When the user taps a "button" (something drawn using OpenGL... not something from Interface Builder) I want to present a pre-populated email composer. How can I do this? I'm currently trying to use MailComposerViewController from the Apple sample code. I just don'...