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?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
:) Yes, you can do this:
where message is just an NSString with HTML content. Inside you can add all the HTML you want.
Use
setMessageBody:isHTML:
and pass a proper HTML link in the body (<a href="your_url">your link text</a>
) and passYES
to theisHTML
parameter.I deleted my previous answer as it was incorrect and irrelevant. After much hair pulling I finally figured out what was going on in my case and is probably what is happening in this question.
When you compose the HTML body for the MFMailComposeViewController you must put line breaks in the HTML. If any line is > 76 chars long, the body will be interpreted as follows:
If you put line breaks in, the
Content-Transfer-Encoding: quoted-printable
will not happen and everything works as expected. Assuming you have proper HTML.As an example, build the body as follows:
Cheers!
did you try on your code your suggestion? I tried it before getting to this web site, and sorry to say, it doesn't work at all. The Link appears really in blue, the HTML is read as html, but no link is possible. When I click on the link I can just edit it....
Any better suggestion?
I have the same problem.
My link is HTML, I can see 'blue' but if I click it, doesn't open safari mobile. Is allowed to me edit the text.
In a class I have this:
Here you can see the iPad Screen shot:![iPad Screen shot](https://i.stack.imgur.com/61bjN.png)
If I send, and then I go to "Sent" Mailbox the link works, so I think the problem is the event which open the links.
Thanks.