Send Email in iOS With New SendGrid Library


November 08, 2013
Written by
SendGrid Team
Contributor
Opinions expressed by Twilio contributors are their own

Send Email in iOS With New SendGrid Library

Sending email programmatically through Objective-C has not an optimal experience. That's why I created the SendGrid Objective-C library, so developers can easily send emails from their iOS apps.

Without this SendGrid library, developers have a couple sub-par options for sending email. The first is to implement the MFMailComposeViewController. The drawback here is it presents the user with a mail compose screen and they have to hit send. The other option is to implement an SMTP library such as skpsmtpmessage. However, there is a lot of boilerplate code you need to reuse to send a message. Plus, adding photo attachments and working with them is not a smooth experience.

The Sendgrid Objective-C library addresses these issues and allows app developers to take advantage of our features and practices that allow for detailed analytics and increased deliverability.

Here's the basic code for how you can send email with iOS:


More detailed instructions are available on GitHub. You can install the library by either cloning the repository or using CocoaPods.

Recommended For You



Most Popular


Send With Confidence

Partner with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.