Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imryan/jumprock-ios

✉️ Send static forms via Jumprock's API
https://github.com/imryan/jumprock-ios

email-sender forms jumprock

Last synced: 26 days ago
JSON representation

✉️ Send static forms via Jumprock's API

Awesome Lists containing this project

README

        

# Jumprock

[![CI Status](https://img.shields.io/travis/imryan/Jumprock.svg?style=flat)](https://travis-ci.org/imryan/Jumprock)
[![Version](https://img.shields.io/cocoapods/v/Jumprock.svg?style=flat)](https://cocoapods.org/pods/Jumprock)
[![License](https://img.shields.io/cocoapods/l/Jumprock.svg?style=flat)](https://cocoapods.org/pods/Jumprock)
[![Platform](https://img.shields.io/cocoapods/p/Jumprock.svg?style=flat)](https://cocoapods.org/pods/Jumprock)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Usage

### Create form
```swift
let form = JumprockForm(subject: "Hello, world!",
message: "Some message.",
phone: "2125551234",
name: "John Doe",
replyToAddress: "[email protected]",
redirectURLString: nil,
cc: ["[email protected]", "[email protected]"], bcc: nil)
```
### Send form
```swift
Jumprock.send(form, fromAlias: "YOUR_ALIAS") { (error) in
if let error = error {
debugPrint("Did not send email:", error)
}
else {
debugPrint("Sent email!")
}
}
```
## Installation

Jumprock is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'Jumprock'
```

## Author

Ryan Cohen, [email protected]

## License

Jumprock is available under the MIT license. See the LICENSE file for more info.