Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4561050
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:01:13+00:00 2026-05-21T18:01:13+00:00

I am trying to create a small email apps. Everything works correctly but the

  • 0

I am trying to create a small email apps. Everything works correctly but the email is not sending. Whether i have do something for this. I am learning by myself. so i lack something. here is my code..

-(void)viewDidLoad
{
    UIButton *but01 = [UIButton buttonWithType:UIButtonTypeRoundedRect];                    //Button I
    but01.frame = CGRectMake(240,10, 70, 50);
    [but01 setTitle:@"ADD" forState:UIControlStateNormal];
    [but01 addTarget:self action:@selector(sendMail) 
    forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:but01];


}

- (IBAction)sendMail {
    if ([MFMailComposeViewController canSendMail]) {
        MFMailComposeViewController *mfViewController = [[MFMailComposeViewController alloc] init];
        mfViewController.mailComposeDelegate = self;

        [self presentModalViewController:mfViewController animated:YES];
        [mfViewController release];
    }else {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Status:" message:@"Your phone is not currently configured to send mail." delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil];

        [alert show];
        [alert release];
    }
}


#pragma mark -
#pragma mark MFMailComposeViewControllerDelegate Methods

- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Status:" message:@"" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil];

    switch (result) {
        case MFMailComposeResultCancelled:
            alert.message = @"Message Canceled";
            break;
        case MFMailComposeResultSaved:
            alert.message = @"Message Saved";
            break;
        case MFMailComposeResultSent:
            alert.message = @"Message Sent";
            break;
        case MFMailComposeResultFailed:
            alert.message = @"Message Failed";
            break;
        default:
            alert.message = @"Message Not Sent";
        break;  }
    [self dismissModalViewControllerAnimated:YES];

    [alert show];
    [alert release];
}

For this i am getting this message in the console. What can i do now?

29/04/11 4:03:04 PM SpringBoard[3115]   Reloading application state for 'com.yourcompany.Sendmail' as its modification date has changed    
29/04/11 4:03:04 PM com.apple.launchd.peruser.501[95]   (UIKitApplication:com.yourcompany.Sendmail[0x38e1][3206]) Exited: Killed    
29/04/11 4:03:04 PM SpringBoard[3115]   Reloading and rendering all application icons.    
29/04/11 4:03:04 PM SpringBoard[3115]   Application 'Sendmail' exited abnormally with signal 9: Killed
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:01:13+00:00Added an answer on May 21, 2026 at 6:01 pm

    MFMailCompose doesn’t work in simulator, check it on device

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a small sequence of animations with jQuery but cannot get
I have small problem when trying to create many-to-many link in doctrine. I have
Trying to create a small monitor application that displays current internet usage as percentage
I'm trying to create a small Javascript framework that I can use in my
Trying to create a user account in a test. But getting a Object reference
I'm trying to create a sitemap using Linq to Xml, but am getting an
I am trying to create a small function that returns the number of spaces
I am playing around with xCode and was trying to create a small app
I'm new to flex and actionscript. I'm trying to create a small flex app
Im having a small problem, I'm trying to create an inline editing system with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.