I want my app using the MFMailComposeViewController to send an email such that the recipient can click on the embedded url to open the corresponding web site. MFMailComposeViewController does not appear to support this explicitly. Any ideas?
views:
323answers:
4
A:
Use setMessageBody:isHTML:
and pass a proper HTML link in the body (<a href="your_url">your link text</a>
) and pass YES
to the isHTML
parameter.
Greg Martin
2010-01-13 16:51:44
+1
A:
Hi Rudi! :) Yes, you can do this:
MFMailComposeViewController *composer = [[MFMailComposeViewController alloc] init];
composer.mailComposeDelegate = self;
[composer setSubject:subject];
[composer setMessageBody:message isHTML:YES];
where message is just an NSString with HTML content. Inside you can add all the HTML you want.
Adrian Kosmaczewski
2010-01-13 16:52:23