The SmtpService class represents an instance of the Simple Mail Transfer Protocol (SMTP) service associated with the topology of the server farm.
The following table shows the constructors of the SmtpService class and a brief description of each.
|SmtpService||Initializes a new instance of the SmtpService class based on the specified Server object.|
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
The public constant ServiceClass defined in the SmtpService class contains the GUID value that distinguishes an SmtpService from other Microsoft Office SharePoint Portal Server services.
To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.
In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security