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 7047271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:45:03+00:00 2026-05-28T02:45:03+00:00

I am implementing an iphone application (iOS 4.2) from where I would like to

  • 0

I am implementing an iphone application (iOS 4.2) from where I would like to trigger the email client to send messages with attachments. I could effectively use uri schemes in combination with the class NSURL in order to trigger the email app but I was wondering whether it is possible to attach images. I have tried with mailto:whoever@wherever.org?subject=sthg&body=sthgelse&attachment=/path/to/file but the attachments are not included. I know iphone applications are sandboxed therefore it is possible that the email utility were not able to access the path to my image since it is located in my application bundle. On the other hand I was considering to administer my images with the photo manager. (1) Is there a way to include attachments in this way? (2) If so, is it possible to reference images either from my app or from the photo client? I could not find any attachments argument in the mailto RFC but maybe Apple has provided some way to achieve this.

Thanks in advance for your help,

Luis

  • 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-28T02:45:04+00:00Added an answer on May 28, 2026 at 2:45 am

    MFMailComposeViewController will be able to do that, some example of usage belows:
    remember to add MessageUI.framework

    MFMailComposeViewController *email = [[MFMailComposeViewController alloc] init];
    email.mailComposeDelegate = self;
    [email setSubject:@"Whatever"];
    
    // Set up recipients
    NSArray recipients = [NSArray arrayWithObject:@"whoever@wherever.org"]; 
    
    [email setToRecipients:recipients];
    
    
    // Attach an image to the email
    UIImage *attachment = ...;
    NSData *data = UIImagePNGRepresentation(attachment);
    [email addAttachmentData:myData mimeType:@"image/png" fileName:@"ok.png"];
    
    // Fill out the email body text
    NSString *emailBody = @"test mail";
    [email setMessageBody:emailBody isHTML:NO];
    [self presentModalViewController:picker animated:YES];
    
    [email release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing a push notification in my application. Server: php Client: iphone Sever
I am implementing chat in my application, very similar to the iPhone's built-in Messages
Ok...... I'm implementing a simple OpenGL ES application on the iPhone and I recently
I am implementing one iphone application in which i want to find direction of
I am implementing mobile local search in iPhone application: - (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText
I am iphone developer but now i am implementing cocoa application.I am new for
We are implementing one web based application in iPhone. if i answered the incoming
I would like to get feedback from all you seasoned developers as to what
I am developing an application for iOS 4.x devices. I am implementing a communication
Is there any way for implementing popovers and split-view in iphone application?.I saw a

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.