Search Unity

using System.Net.Mail ?

Discussion in 'Web' started by Slyrfecso1, Nov 15, 2015.

  1. Slyrfecso1

    Slyrfecso1

    Joined:
    Jul 16, 2012
    Posts:
    100
    Hi,

    I'd like to send e-mail from my WebGL project.
    I have problem at the beginning, when I add "using System.Net.Mail;" to header, then I got console error:
    The type or namespace name `Mail' does not exist in the namespace `System.Net'. Are you missing an assembly reference?


    Need I import any package?
    (I don't use Standard Assets!)

    Any answer would be helpful.
    Thanks.
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Your problem does not seem to be specific to WebGL, maybe that class does not exist in Unity's System dlls?

    But, regardless of that, it would not work in WebGL anyways, as none of the System.Net.* classes are supported as the platform does not support direct access to network sockets (as documented here: http://docs.unity3d.com/Manual/webgl-networking.html).

    I suggest opening a mailto: link instead.