Find it on GitHub.

Do you ever wish sending an email or message from within the app didn’t have to go through the pain of setting up delegates and dealing with MFMailComposeViewController? Now you don’t have to! DBShare is a library that makes MFMailComposeViewController and MFMessageComposeViewController problems a thing of the past.

Use the two-file source code or simply drag n’ drop the static framework into your project and import the header:

Here’s how to quickly send an email:

Just as easily you can send messages:

Both DBShareMail and DBShareMessage inherit from the DBShareable object, which supports adding attachments. For both mail and message sharing, adding an attachment is as simple as:

Also, no need to keep all the different MIME types in your head. With DBMimeType enumeration, Xcode is able to provide code completion, eliminate spelling errors and allow you to quickly find the correct MIME type.