How can I send a HTML email from Cocoa?

后端 未结 3 1195
粉色の甜心
粉色の甜心 2020-12-10 17:31

I\'m looking for a way to create a HTML formatted email from a OS X Cocoa application.

My preferred workflow would be: The user selects a menu item and the default m

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 18:00

    There's no standard way to do complex interactions with arbitrary email clients. You would have to tackle each application you want to support separately, and see if it has a way to set the email format--most likely via Applescript--and then detect what the default mailto handler is and run the appropriate code. For some email clients, it may not be possible (just as some clients have no supported way to open a new email with an attachment).

提交回复
热议问题