mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
ShareToMail accepts Subject and Body parameters as documented.
This commit is contained in:
@@ -112,14 +112,10 @@
|
||||
|
||||
SHKItem *item;
|
||||
|
||||
NSString *message = [arguments objectAtIndex:1];
|
||||
if ([arguments objectAtIndex:2]==NULL) {
|
||||
NSURL *itemUrl = [NSURL URLWithString:[arguments objectAtIndex:2]];
|
||||
item = [SHKItem URL:itemUrl title:message contentType:SHKURLContentTypeWebpage];
|
||||
} else {
|
||||
item = [SHKItem text:message];
|
||||
}
|
||||
|
||||
NSString *subject = [arguments objectAtIndex:1];
|
||||
NSString *body = [arguments objectAtIndex:2];
|
||||
|
||||
item = [SHKItem text:body title:subject];
|
||||
[SHKMail shareItem:item];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user