views:

58

answers:

3

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  A: 

This process is known as serialization. Apple has a guide for it, that's worth reading through.

EightyEight
A: 
TechZen
I don't need to reconstruct the array from the email. Can you please explain more on the array's description method please.
thary
+3  A: 

I'll suggest you convert your array into a text string using JSON. Then place the text in the email, send it away and use JSON on the receiving end to reconstruct the array. You can get an iPhone version of JSON called TouchJSON here.

Claus

Claus Broch