E-mail

You can allow users to sed pre-defined e-mails with device mail app using the UM_EmailDialogBuilder. See the example below.

For this example, we will generate a sample image using SA_IconManager. However, you can use any image or images you like. The only limitation, this image has to be readable.

using SA.Foundation.Utility;
using SA.CrossPlatform.Social;
...

var client = UM_SocialService.SharingClient;
var dialog = new UM_EmailDialogBuilder();

dialog.SetSubject("Subject");
dialog.SetText("Hello World!");
dialog.SetUrl("https://stansassets.com/");

//Juts generating smaple red tuxture with 32x32 resolution
Texture2D sampleRedTexture = SA_IconManager.GetIcon(Color.red, 32, 32);
dialog.AddImage(sampleRedTexture);
dialog.AddRecipient("support@stansassets.com");

client.ShowSendMailDialog(dialog, (result) => {
    if (result.IsSucceeded) {
        Debug.Log("Sharing started ");
    } else {
        Debug.Log("Failed to share: " + result.Error.FullMessage);
    }
});