Email library for Jailbroken Devices
Requires iOS8+ maybe lower haven't tested
This library can be used in a sandboxed app or a regular tweak on a jailbroken device.
How to use in your tweak/app:
#include <dlfcn.h>
@interface libtweakemail : NSObject
+ (void)sendEmailTo:(NSArray*)toArray
bcc:(NSArray*)bccArray
subject:(NSString*)subject
body:(NSString*)body;
@end
- (void)sendEmail {
void *handle = dlopen("/usr/lib/libtweakemail.dylib", RTLD_NOW);
if (handle != NULL) {
[objc_getClass("libtweakemail") sendEmailTo:@[@"co3@gmail.com", @"gfe4@gmail.com"]
bcc:nil
subject:@"Pretty Cool Tweak Huh?"
body:@"Hard body?"];
dlclose(handle);
}
}