Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
SendEmail by Kr15t14n
Run-time exception (line 15): Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Stack Trace:

[System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at System.Net.Mail.SmtpClient.Initialize()
   at System.Net.Mail.SmtpClient..ctor(String host, Int32 port)
   at Program.SendEmail(String server, Int32 port, String user, String password) :line 15
   at Program.Main() :line 10
Last Run: 6:58:23 am
Compile: 0.183s
Execute: 0.006s
Memory: 219.63kb
CPU: 0s