niklassaers
niklassaers

Reputation: 8810

Alternative to MFMailComposeViewController?

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

Upvotes: 3

Views: 1511

Answers (2)

Stunner
Stunner

Reputation: 530

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

Upvotes: 3

J2theC
J2theC

Reputation: 4452

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.

Upvotes: 2

Related Questions