iphone - how to remove cc,bcc in MailComposerViewController? -


I am using MailComposerViewController from apple site. But when I send my message with blank CC, BCC Field, then it gives the error that it asks to fill that field. How can I send the vacant area without the CC, BCC? Bcos is optional for this user. Many help?

I'm not sure what you are missing, but here you have something that will help you :

- Make sure that you are implementing the MFMailComposeViewControllerDelegate Representative Protocol.

  MFMailComposeViewController * mc = [[MFMailComposeViewController alloc] initWithNibName: Zero Bundle: Zero]  

- Here you have a snippet of code that works for me: ; Mc.mailComposeDelegate = self; [MC SetoRePaint: [NSARRAOIJject: Self and Reciprntem Email]]; NSString * Subject = [NSString stringWithFormat: NSLocalizedString (@ "mail topic", void)]; [MC set topic: subject]; [MC SetmoseBedi: [Self Composing ModaASSHL] is HTML: Yes]; [Self current model visualizer: animated MC: yes]; [MC release];

And here you have a representative method

  #pragma mark MFMailComposeViewControllerDelegate - (zero) mailComposeController: (MFMailComposeViewController *) Administrator didFinishWithResult: (MFMailComposeResult) results error : (NSError *) Error {Switch (Results) {Case MFMailComposeResultCancelled: // Something Smash; Case MFMailComposeResultSaved: message = NSLocalizedString (@ "saved! Email was saved successfully", @ "email saved message"); // break something; Case MFMailComposeResultSent: // Break Something; MFMailComposeResultFailed: // Something Smash; Default: // Something break; }}  

I hope this will help, good luck!


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -