parent
c233146632
commit
c0cf313903
|
|
@ -106,12 +106,6 @@ namespace Guru
|
||||||
if (string.IsNullOrEmpty(body)) body = GetDefaultMailBody();
|
if (string.IsNullOrEmpty(body)) body = GetDefaultMailBody();
|
||||||
|
|
||||||
string url = $"mailto:{email}&subject={EscapeUrl(subject)}&body={EscapeUrl(body)}";
|
string url = $"mailto:{email}&subject={EscapeUrl(subject)}&body={EscapeUrl(body)}";
|
||||||
#if UNITY_ANDROID
|
|
||||||
url =
|
|
||||||
$"https://mail.google.com/mail/?view=cm&fs=1&to={email}&su={EscapeUrl(subject)}&body={EscapeUrl(body)}"; // Call Gmail
|
|
||||||
#elif UNITY_IOS
|
|
||||||
url = $"mailto:?to={email}&subject={EscapeUrl(subject)}&body={EscapeUrl(body)}";
|
|
||||||
#endif
|
|
||||||
Application.OpenURL(url);
|
Application.OpenURL(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue