So like various web-site’s feature,
how implement this feature in unity?
If user click email address, open windows basic or custom mail client(normally MS outlook) and can immediately send email.
Thanks.
So like various web-site’s feature,
how implement this feature in unity?
If user click email address, open windows basic or custom mail client(normally MS outlook) and can immediately send email.
Thanks.
In C# you can do it like this:
using UnityEngine;
using System.Diagnostics;
using System.Collections;
public class Test : MonoBehaviour {
void Start () {
Process.Start("mailto:email@provider");
}
}
Take a look at this for a specifc configuration.
Additionally, a more professional approach would be to send the email via server (with email form inside Unity). Unity is perfectly capable of doing this.
How? using WWW in unityscript?
Yes… by sending the data to your PHP (or other) server-side script and sending the mail from there (if you have an online application, of course).
Something like this: