Created
July 31, 2014 00:35
-
-
Save heitortsergent/cc65199b390f8b3c4388 to your computer and use it in GitHub Desktop.
SendGrid Objective-C Library Import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <SendGrid/SendGrid.h> | |
#import <SendGrid/SendGridEmail.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SendGrid *sendgrid = [SendGrid apiUser:@"username" apiKey:@"password"]; | |
SendGridEmail *email = [[SendGridEmail alloc] init]; | |
email.to = @"example@example.com"; | |
email.from = @"other@example.com"; | |
email.subject = @"Hello World"; | |
email.html = @"<h1>My first email through SendGrid</h1>"; | |
email.text = @"My first email through SendGrid"; | |
[sendgrid sendWithWeb:email]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment