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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:08:30+00:00 2026-05-23T12:08:30+00:00

I would like to on a press of a button to save an xml

  • 0

I would like to on a press of a button to save an xml file into the documents directory and to add that file into an array where this array would later be sent to an email address. I think I have the saving figured out,but how do I put the files into an array? Also is it possible to somehow send these file to an email address? Could anyone give some advice on this?

  • 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-23T12:08:30+00:00Added an answer on May 23, 2026 at 12:08 pm
    NSString *filePath = @"...<path to directory where XML is saved on the device>";
    
    NSMutableArray *mArray = [[NSMutableArray alloc] init];
    
    //Repeat this for every file you want to attach
    [mArray addObject:filePath];
    

    After doing this.. whenever the email with the attachements need to be sent, loop through the array and add it as a attachement.
    Use this as a reference. http://iosdevelopertips.com/email/how-to-send-email-with-attachments-example-using-iphone-camera-to-email-a-photo.html

    This is for a image, but should work well for any file with some modifications.

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

Sidebar

Related Questions

I would like to know how I can add a counter to a button
When I press a button, I would like to disable screen rotation on all
I would like to add a NSProgressIndicator . I have a button which enable
I would like to keep my dialog open when I press a button. At
I would like the user to press a button. When the onClickListener for the
I would like to press a button from an Adobe AIR application and execute
I would like to be able to press a button to disable the menu
I would like to be able to programmatically emulate a shutter button press on
I would like to make an application in which, when I press a button,
I would like to open an Image, in ImageView, from a button press. I

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.