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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:20:57+00:00 2026-05-14T08:20:57+00:00

Hey guys I need to send the content of an NSMutableArray through email. I

  • 0

Hey guys I need to send the content of an NSMutableArray through email. I have a mailing function but I’m not sure on how to place the content of the array into a NSString to be displayed on the email under each other. Is there a way to place all the content of the array into the string with maybe HTML nextline command between each array element?

 NSString *emailBody = @"Need to put the body here";

Thanks

  • 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-14T08:20:57+00:00Added an answer on May 14, 2026 at 8:20 am

    The simplest way is to call the array’s description method which will return a human readable plist in a NSString.

    If you need to reconstitute the array from the email. You will need save the array as xml plist using the writeToFile: method. Then read the file back in as a string. To reconstitute you will need to extract the xml from the email, put it in a NSString, write that to file, then read it back into an NSArray.

    (IIRC, there used to be a way to write to NSString as if it was a file but I can’t remember how to do it anymore. Probably, writing to a NSFileHandle and reading it back instantly.)

    Edit:

    Can you please explain more on the
    array’s description method please.

    Like so:

    NSArray *myArray=[NSArray arrayWithObjects:@"Obj1",@"Obj2",@"Obj3",nil];
    NSLog(@"myArray=%@",[myArray description]);
    

    …prints:

    myArray=(
        Obj1,
        Obj2,
        Obj3
    )
    

    For your project you can do:

    NSString *arrayString=[myArray description];
    

    The is also a descriptionWithLocale that will print the array in different languages. I don’t have a ready example for that. See NSArray, NSLocale and The Locales Programming Guide

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

Sidebar

Related Questions

Hey guys. I have this function: i need split headers and html. string simpleGET(string
Hey guys need some more help I have 3 tables USERS, PROFILEINTERESTS and INTERESTS
Hey guys I'm I need get a user's date of birth in a form...How
Hey guys, Need a help in Interface Builder. Usually when you insert a button,
Hey guys, I need your help. What can be my problem why its giving
Hey guys I am working on a project where I need to broadcast a
Hey guys, I need some help, how can I sum a list from a
Hey guys, I'm building a project using Silverlight and the MVVM pattern, what I
Hey everyone, You guys here are awesome, I'm getting so many questions answered, its
Hey all, I would like some advice from the programming community. I am building

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.