An SMTPPermission setting is required for the MailSession object log on function in .NET targets.
MailSession object function | Permission required |
---|---|
MailLogon | Connect (if using default port) or ConnectToUnrestrictedPort |
<IPermission class="System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Access="Connect"/>
<IPermission class=" SmtpPermission" version="1" Access="ConnectToUnrestrictedPort"/>