Ive made some small progress with this, could anyone tell me if the following code is correct:
On a button press:
Code:
NSString *filepath = <myfilepath goes here>;
[someArray addObject:filepath];
[nameArray addObject:someTextField.text]; //name of the files
And then in MFMailComposeViewController after allocating it and such:
Code:
for (int i=0;[someArray count];i++)
{
[composer addAttachement:[NSData dataWithContentsOfFile:[array objectAtIndex:i]] mimeType:@"xml/text" fileName:[NSString stringWithFormat:@"%@.xml",[nameArray objectAtIndex:i]];
}