Mail Composer
bool canSendMail = MailComposer.CanSendMail();Send a text mail
MailComposer composer = MailComposer.CreateInstance();
composer.SetToRecipients(new string[1]{"[email protected]"});
composer.SetCcRecipients(new string[1]{"[email protected]"});
composer.SetBccRecipients(new string[1]{"[email protected]"});
composer.SetSubject("Subject");
composer.SetBody("Body", false);//Pass true if string is html content
composer.SetCompletionCallback((result, error) => {
Debug.Log("Mail composer was closed. Result code: " + result.ResultCode);
});
composer.Show();Send a mail with screenshot
Send a mail with an attachment
Last updated