Skip to content
This repository has been archived by the owner on Feb 17, 2018. It is now read-only.

Commit

Permalink
Reworked the launch test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylar Schipper committed Dec 18, 2012
1 parent ea0874f commit 6e3b3f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SSPostmarkTestApp/SSTAAppDelegate.m
Expand Up @@ -19,16 +19,16 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];


NSLog(@"SSPostmark Version: '%@'",[SSPostmark version]);

SSPostmarkMessage *message = [SSPostmarkMessage new];
message.fromEmail = @"ss@schipp.co";
message.replyTo = @"ss@schipp.co";
message.to = @"ss@schipp.co";
message.textBody = @"Test Email";
message.subject = @"Just a test";
message.tag = @"sspm-test";
[message addCompletionBlock:^(SSPostmarkMessage *message, NSUInteger statusCode, NSDictionary *responseJSON) {
NSLog(@"(%i)\n%@",statusCode,responseJSON);
}];

SSPostmarkAttachment *att = [[SSPostmarkAttachment alloc] init];
att.content = UIImagePNGRepresentation([UIImage imageNamed:@"sunset.jpg"]);
Expand All @@ -37,7 +37,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[message addAttachmentsObject:att];


[[SSPostmark postmaster] setApiKey:@"b73973a3-1b2f-4134-b30e-d0c635b0c0be"];
[[SSPostmark postmaster] setApiKey:SSPOSTMARK_TEST_API_KEY];
[[SSPostmark postmaster] sendMessage:message];


Expand Down

0 comments on commit 6e3b3f0

Please sign in to comment.