MFMailComposeViewController : how do I embed a clickable URL link into the email message body

后端 未结 5 1466
你的背包
你的背包 2020-12-09 05:31

I want my app using the MFMailComposeViewController to send an email such that the recipient can click on the embedded url to open the correspondin

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 05:51

    :) 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.

提交回复
热议问题