Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ email.text = @"My first email through SendGrid";
[sendgrid sendWithWeb:email];
```


## Installation

Choose your installation method - CocoaPods (recommended) or source.
Expand Down Expand Up @@ -97,6 +98,18 @@ Send it.
```objective-c
[sendgrid sendWithWeb:email];
```
#### Swift
```swift
let sendgrid:SendGrid = SendGrid(apiUser: "username", apiKey: "password")
let email:SendGridEmail = SendGridEmail()
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)
```

### To

Expand Down