SMTPPermission

An SMTPPermission setting is required for the MailSession object log on function in .NET targets.

SMTPPermission required in .NET targets
MailSession object function Permission required
MailLogon Connect (if using default port) or ConnectToUnrestrictedPort

Example 1

This permission setting allows a Windows Forms application to log onto a mail session and receive mail through a default port:
   <IPermission class="System.Net.Mail.SmtpPermission, 
   System, Version=4.0.0.0, Culture=neutral, 
   PublicKeyToken=b77a5c561934e089" version="1" 
   Access="Connect"/>