Latest 0.1.2
Homepage https://github.com/troyz/MailUtil
License MIT
Platforms ios 8.0, requires ARC
Frameworks CFNetwork, Foundation
Authors

[![CI Status](http://img.shields.io/travis/Troy Zhang/MailUtil.svg?style=flat)](https://travis-ci.org/Troy Zhang/MailUtil)
Version
License
Platform

Introduction

As you known, skpsmtpmessage could not send email in concurrent order. MailUtil is a tool that wrap skpsmtpmessage to send emails in serial order. Thanks for the article Sending Mails in Serial Order using GCD.

Example

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

Requirements

iOS7+

Installation

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

pod "MailUtil", :git => 'https://github.com/troyz/MailUtil.git', :tag => '0.1.0'

Useage

// please correct it.
[SendEmailOperation setupConfigWithServer:@"smtp.163.com" withFrom:@"[email protected]" withLogin:@"[email protected]" withPassword:@"**********"];

// the attachment file path
NSString *path = [[NSBundle mainBundle] pathForResource:@"[email protected]" ofType:nil];

// a message that will be sent
SendEmailOperation *operation = [[SendEmailOperation alloc] initWithTo:@"[email protected]" subject:@"Hello" body:@"World" path:path];

// send the message
[SendEmailOperation sendEmail:operation];

Author

Troy Zhang, [email protected]

License

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

Latest podspec

{
    "name": "MailUtil",
    "version": "0.1.2",
    "summary": "Sending mails with `skpsmtpmessage` in serial order.",
    "description": "As you known, `skpsmtpmessage` could not send email in concurrent order. `MailUtil` is a tool that wrap `skpsmtpmessage` to send emails in serial order.",
    "homepage": "https://github.com/troyz/MailUtil",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Troy Zhang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/troyz/MailUtil.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "MailUtil/Classes/*.{h,m}",
    "public_header_files": "MailUtil/Classes/*.h",
    "frameworks": [
        "CFNetwork",
        "Foundation"
    ],
    "subspecs": [
        {
            "name": "skpsmtpmessage",
            "source_files": "MailUtil/Classes/skpsmtpmessage/*.{h,m}",
            "public_header_files": "MailUtil/Classes/skpsmtpmessage/*.h",
            "requires_arc": false,
            "frameworks": [
                "CFNetwork",
                "Foundation"
            ]
        }
    ]
}

Pin It on Pinterest

Share This