Latest 1.1.0
Homepage https://github.com/ricsantos/RSEmailFeedback
License MIT
Platforms ios 7.0, requires ARC
Dependencies GBDeviceInfo
Authors

Version
License
Platform

A simple way to get direct feedback from your App users is via email. This component simplifies the presentation of the email composer by adding blocks, and pre-populates the email message body with details about the device, OS and app version.

RSEmailFeedback

Installation

RSEmailFeedback is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RSEmailFeedback'

Usage

(see sample Xcode project in /Demo)

Create an instance of RSEmailFeedback and present it by passing a reference the the visible view controller, and an optional block to run on completion.

Objective C:

#import <RSEmailFeedback/RSEmailFeedback.h>

RSEmailFeedback *emailFeedback = [[RSEmailFeedback alloc] init];
emailFeedback.toRecipients = @[@"[email protected]"];
emailFeedback.subject = @"Feedback for RSEmailFeedback";
[emailFeedback showOnViewController:self withCompletionHandler:^(MFMailComposeResult result, NSError *error) {
    if (result == MFMailComposeResultSent) {
        NSLog(@"email sent 😁");   
    }
}];

Swift:

import RSEmailFeedback

let emailFeedback = RSEmailFeedback()
emailFeedback.toRecipients = ["[email protected]"]
emailFeedback.subject = "Feedback for RSEmailFeedback"
emailFeedback.show(on: self) { (result, error) in
    if result == .sent {
        print("email sent 😁")
    }
}

License

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

Latest podspec

{
    "name": "RSEmailFeedback",
    "version": "1.1.0",
    "summary": "An iOS component to present the email compose sheet with device and app info in the body.",
    "description": "A simple way to get direct feedback from your App users is via email. This component simplifies the presentation of the email composer by adding blocks, and pre-populates the email message body with details about the device, OS and app version.",
    "homepage": "https://github.com/ricsantos/RSEmailFeedback",
    "screenshots": "https://raw.githubusercontent.com/ricsantos/RSEmailFeedback/develop/Screenshots/screenshot-01.png",
    "license": "MIT",
    "authors": {
        "Ric Santos": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ricsantos/RSEmailFeedback.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "dependencies": {
        "GBDeviceInfo": []
    }
}

Pin It on Pinterest

Share This