mailto with html body for UIApplication sharedApplication
Hi There,
I would like to have my iPhone application be able to email out in html format some local data. After looking at it I have two questions:
1) What is the best way to construct large strings i.e html content. Appending hundreds on lines to an NSString seems cumbersome. In Java I would use a StringBuffer but I cant't find the C counterpart.
2) Once I have this html content can I simply pass it as the '?body'var in the mailto url of the UIApplication sharedApplication? It's a lot of data and may not have the correct %20 UTF coding.
Any ideas or examples on the best way to do this if it is at all possible? Ideally I would like to send an email with an attachment but the iPhone SDK prohibits that currently.
Many Thanks All
I would like to have my iPhone application be able to email out in html format some local data. After looking at it I have two questions:
1) What is the best way to construct large strings i.e html content. Appending hundreds on lines to an NSString seems cumbersome. In Java I would use a StringBuffer but I cant't find the C counterpart.
2) Once I have this html content can I simply pass it as the '?body'var in the mailto url of the UIApplication sharedApplication? It's a lot of data and may not have the correct %20 UTF coding.
Any ideas or examples on the best way to do this if it is at all possible? Ideally I would like to send an email with an attachment but the iPhone SDK prohibits that currently.
Many Thanks All
macBook Pro, Mac OS X (10.5.4)