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

  • SEARCH
  • Home
  • 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 7025053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:55:25+00:00 2026-05-27T23:55:25+00:00

I am using the MessageUI framework to send an email but I never receive

  • 0

I am using the MessageUI framework to send an email but I never receive that email when sent.

I am importing #import <MessageUI/MessageUI.h>

and then I have the following code

- (void)emailFile
{
if(![MFMailComposeViewController canSendMail]) {
    UIAlertView *cantSend = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Device not configured to send email" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
       [cantSend show];
    [cantSend release];
} else {
    MFMailComposeViewController *mailView = [[[MFMailComposeViewController alloc] init] autorelease];
    mailView.mailComposeDelegate = self;
    [mailView setToRecipients:[NSArray arrayWithObject:@"matthew.inman@cdl.co.uk"]];
    [mailView setSubject:@"Test"];
    [mailView setMessageBody:@"This is a text message" isHTML:NO];
    [self presentModalViewController:mailView animated:YES];
}
}

and

- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error
{
if(error) {
    UIAlertView *errorView = [[UIAlertView alloc] initWithTitle:@"Mail Error" message:[error localizedDescription] delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
    [errorView show];
    [errorView release];
} else {
    switch (result) {
        case MFMailComposeResultSent:
            NSLog(@"Sent Mail");
            break;
        case MFMailComposeResultSaved: 
            NSLog(@"Mail Saved");
            break;
        case MFMailComposeResultCancelled:
            NSLog(@"Mail Cancelled");
            break;
        case MFMailComposeResultFailed:
            NSLog(@"Mail Failed");
            break;
        default:
            break;
    }
}
[controller dismissModalViewControllerAnimated:YES];
}

I get the message “Sent Mail” in the console but I like I said I never receive the email that I am sending.

I have gone through the apple documentation and can’t find anything that helps can anyone else help me please. I’m I doing something wrong?

  • 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-27T23:55:26+00:00Added an answer on May 27, 2026 at 11:55 pm

    Make sure you are testing on a device, email will not be sent via the simulator.

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

Sidebar

Related Questions

I have a function that sends email using asp.net built in mail framework. I've
I'm creating an email message using CDO object (and VB6, but that doesn't really
I am using the MessageUI framework to send and image via e-mail after taking
I have a Windows Mobile application using the compact framework (NETCF) that I would
I'm trying to send an email message using the .NET MailMessage class which can
I'm using JSON-Framework in my project successfully to decode JSON send from a server.
We have message framing working by using a lengh prefix but using .NET 2.0
I'm using the zend framework and have a script which sends emails. However my
I'm using Zend_Queue to queue and send out emails (http://framework.zend.com/manual/en/zend.queue.adapters.html) Is there a way
Is it possible to send messages from inside an app, using MessageUI framwork on

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.