Latest 0.0.3
Homepage https://github.com/jasenhuang/smtp
License BSD
Platforms ios 7.0, requires ARC
Authors

smtp

1.tiny object-c smtp library

2.base on libcurl-7.44

pod ‘SMTPLite’, ‘~> 0.0.3’

    SMTPMessage *message = [[SMTPMessage alloc] init];
    message.from = @"[email protected]";
    message.to = @"[email protected]";
    message.host = @"smtp.domain.com";
    message.account = @"[email protected]";
    message.pwd = @"***";

    message.subject = @"from jasenhuang";
    message.content = @"this is a html!<br/>not plain text<br/>";
    SMTPAttachment* attach = [[SMTPAttachment alloc] init];
    attach.name = @"image.png";
    attach.filePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"image" ofType:@"png"];
    message.attachments = @[attach];

    [message send:^(SMTPMessage * message, double now, double total) {

    } success:^(SMTPMessage * message) {
        NSLog(@"response = %@", [[NSString alloc] initWithData:message.response encoding:NSUTF8StringEncoding]);
    } failure:^(SMTPMessage * message, NSError * error) {
        NSLog(@"error = %@", error);
    }];

Latest podspec

{
    "name": "SMTPLite",
    "version": "0.0.3",
    "summary": "A smtp library for object-c",
    "homepage": "https://github.com/jasenhuang/smtp",
    "license": {
        "type": "BSD"
    },
    "authors": {
        "jasenhuang": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/jasenhuang/smtp.git",
        "tag": "0.0.3"
    },
    "source_files": "smtp/**/*.{h,m}",
    "public_header_files": "smtp/**/*.h",
    "libraries": "z",
    "requires_arc": true,
    "vendored_libraries": "smtp/curl/libcurl.a"
}

Pin It on Pinterest

Share This