We recommend using SendGrid Objective-C, our client library, available on Github, with full documentation.

Using SendGrid’s Objective-C Library

1
2
3
4
5
6
7
8
9
10
11
12
13
// using SendGrid's Objective-C Library - https://github.com/sendgrid/sendgrid-objc
#import <SendGrid/SendGrid.h>
#import <SendGrid/SendGridEmail.h>

SendGrid *sendgrid = [SendGrid apiUser:api_user apiKey:api_key];

SendGridEmail *email = [[SendGridEmail alloc] init];
email.to = @"you@youreamil.com";
email.from = @"test@sendgrid.com";
email.subject = @"Sending with SendGrid is Fun";
email.html = @"and easy to do anywhere, even with Objective-C";

[sendgrid sendWithWeb:email];