SMTPPermission
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 |
Example 1
This permission setting allows a Windows Forms application to log onto a mail session and receive mail through a default port:
1 2 3 4 |
<IPermission class="System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Access="Connect"/> |
Example 2
This permission setting in a Web Forms target allows application users to log onto a mail provider and receive mail through any available port:
1 2 |
<IPermission class=" SmtpPermission" version="1" Access="ConnectToUnrestrictedPort"/> |
Parent topic: Custom Permission Settings
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest