Alternative to MFMailComposeViewController?

百般思念 提交于 2019-12-06 07:52:39

问题


is there an alternative to MFMailComposeViewController that has more-or-less the same functionality, but that will let me handle the sending of the email myself, outside of Apples email-sending system?

What I want to do is to provide a nice email dialog, and then send it through a CRM system instead of directly from the iPad.

Cheers

Nik


回答1:


YES, You can use the MailCore Framework. You can handle the sending of email by yourself. Before sending the mail you have to set its fields such as To,CC,BCC,Subject,body etc and then send by the following code..

CTCoreMessage *msg = [[CTCoreMessage alloc] init];
[CTSMTPConnection sendMessage:msg server:[server stringValue] username:[username stringValue]
                         password:[password stringValue] port:[port intValue] useTLS:tls useAuth:auth];
 [msg release];

It works for me fine. Hope it will help you..




回答2:


You will need to create your own email view and handler. You can use something like JSTokenField : https://github.com/jasarien/JSTokenField to get the functionality on the mail "To:" field.



来源:https://stackoverflow.com/questions/11881751/alternative-to-mfmailcomposeviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!