- Home /
using smtp to send email from webgl build get error message - message string not found in the message table
i cant find out what this error actually is. i am trying to send an email from my webGL game build. does this mean the error is unknown? how can i get the details of the socket exception error?
Answer by Bunny83 · Jul 19, 2016 at 08:00 PM
It's impossible to send an email from a webgl build directly. A webgl build lives inside the client's browser and is restricted by the browser's security sandbox. The only protocols you can use are HTTP / HTTPS and WebSocket. However the WebSocket protocol is actually HTTP compatible and has to be supported by your server.
You can't connect to an SMTP server as this is a completely different protocol. Your only way is to send your mail data via HTTP \ WebSocket to your server and let the server send the mail. For this your server need some scripting support like PHP
Answer by JamesLawrenceMyQVO · Jul 20, 2016 at 02:21 PM
You are getting a System.Net.Sockets exception, which is because WebGL doesn't support that namespace. See: https://docs.unity3d.com/Manual/webgl-networking.html
Your answer

Follow this Question
Related Questions
How to successfully e-mail a standalone file? 0 Answers
get information from external application 1 Answer
Reading sms from inbox in unity android deployment 1 Answer
Application.OpenURL for email on mobile 4 Answers
Game serial number generator 2 Answers