Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
✉️ Send static forms via Jumprock's API
- Host: GitHub
- URL: https://github.com/imryan/jumprock-ios
- Owner: imryan
- License: mit
- Created: 2018-12-27T17:11:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-19T23:04:08.000Z (over 5 years ago)
- Last Synced: 2024-10-13T14:47:30.181Z (2 months ago)
- Topics: email-sender, forms, jumprock
- Language: Swift
- Homepage: https://jumprock.co/
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!")
}
}
```
## InstallationJumprock 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.