I want to send a mail with HTML in it, I'm using somethiong like this:
but for some reason when Mail application opens the body of the mail it's just plain text, can somebody help me?
thanks!
Code:
NSString *mailRecipeData;
mailRecipeData = [NSString stringWithFormat: @"<table><tr><td style='text-align:left'><b>Title</b>:</td></tr></table>"] ;
NSString *encodedMailRecipeData = [mailRecipeData stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *urlString = [NSString stringWithFormat:@"mailto:?subject=%@&body=%@", [@"test" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding], encodedMailRecipeData];
NSURL *url = [[NSURL alloc] initWithString:urlString];
[[NSWorkspace sharedWorkspace] openURL:url];
[urlString release];
but for some reason when Mail application opens the body of the mail it's just plain text, can somebody help me?
thanks!