-
Notifications
You must be signed in to change notification settings - Fork 1
E Mail
levching edited this page Apr 15, 2020
·
3 revisions
- Make sure That Social API is enabled under the plugin editor settings.
- Make sure, that Texture2D you trying to share is Readable.
The code snippet below demonstrates E-mail posting example:
using SA.iOS.Social;
...
ISN_Mail.Send("Mail Subject", "Mail Body", "[email protected]", screenshot);
We can also find out posting result
using SA.iOS.Social;
...
ISN_Mail.Send("Mail Subject", "Mail Body", "[email protected]", screenshot, HandleOnMailPostResult);
void HandleOnMailPostResult(SA_Result result) {
if(result.IsSucceeded) {
Debug.Log("Mail Sent");
} else {
Debug.Log("Mail Failed");
}
}
Note: You can also use HTML format for your e-mail. See the example below:
using SA.IOSNative.Social;
...
ISN_Mail.Send("Mail Subject", "Mail Body <strong> text html </strong> ", "[email protected]", screenshot);
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Getting Started
- Authentication
- Game Center UI
- Leaderboards
- Default Leaderboard
- Achievements
- Saving A Game
- Access Point
- iTunes Connect Setup
- StoreKit Initialization
- Purchase flow
- Receipt Validation
- Store Review Controller
- Storefront API
- Subscription Offers