Unity 4 System.Net.Mail import problem.

I’m trying to import and use System.Net.Mail in some code coming from Unity 3.5

Monodevelop says “using System.Net.Mail;” is valid but Unity can’t find the import and get it in.

The error was “The type or namespace name ‘Mail’ does not exist in the namespace ‘System.Net’.”

1 Answer

1

System.Net.Mail is not allowed to be used when you target a webplayer. Set your build platform to standalone and you’ll be okay.