SMTP Permission

Adds a SmtpPermission to the project. The SmtpPermission and SmtpPermissionAttribute classes control access to SMTP host computers.

Recipe Description

The recipe adds a line for the permission to the Package.Template.xml (for VS 2010 projects) or to the file CASPolicy.txt (for HIVE projects). Warning: Existing permissions with the same name are replaced completely.

Arguments

Name Description
Permission Level Required text. Connect: Connection to an SMTP host on the default port (port 25). ConnectToUnrestrictedPort: Connection to an SMTP host on any port. None: No access to an SMTP host.
Unrestricted Optional Boolean. If Unrestricted is true, the value of Permission Level will be ignored.

References

Authors

  • Torsten Mandelkow

Version history

  • 1.0 Initial Recipe