- Home /
Sending email from unity WebGL
I have been searching for a reference to send a email from unit and even found a solution for it. but it works fine in editor but didn't have any effect in webGl. i have even tried by changing .Net2.0 instead of .Net2.0 subset but i cont make it out. can anyone know how to over come this issue? Thanks in advance. this is the script i have been using . using UnityEngine; using System.Collections; using System; using System.Net; using System.Net.Mail; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using UnityEngine.UI; public class mono_gmail : MonoBehaviour { %|-42547159_1|% %|817444158_2|% %|-1371980068_3|% %|1028229056_4|% public void sendMail () %|-1473279847_6|% %|345187000_7|% %|-438738898_8|% %|942829090_9|% %|-120701472_10|% %|-920751367_11|% %|-588870544_12|% %|2009890583_13|% %|-1083090860_14|% %|54652292_15|% %|-445222347_16|% %|1906760275_17|% %|-218376901_18|% %|-564888585_19|% %|1747400656_20|% smtpServer.Send(mail); %|1161182967_22|% %|2130037557_23|% }
Your answer
![](https://koobas.hobune.stream/wayback/20220612065416im_/https://answers.unity.com/themes/thub/images/avi.jpg)