Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Microsoft.SqlServer.Management.Smo.Mail Namespace

 

Applies To: SQL Server 2016 Preview

The Microsoft.SqlServer.Management.Smo.Mail namespace contains classes that represent the Microsoft SQL Server Database Mail service.

ClassDescription
System_CAPS_pubclassConfigurationValue

The ConfigurationValue class represents a SQL Server Database Mail subsystem configuration option.

System_CAPS_pubclassConfigurationValueCollection

The ConfigurationValueCollection class represents a collection of ConfigurationValue objects that represent all the configuration options defined on the SQL Server Database Mail subsystem.

System_CAPS_pubclassMailAccount

The MailAccount class represents a SQL Server Database Mail subsystem mail account.

System_CAPS_pubclassMailAccountCollection

The MailAccountCollection class represents a collection of MailAccount objects that represent all the mail accounts defined on the SQL Server Database Mail subsystem.

System_CAPS_pubclassMailProfile

The MailProfile class represents a SQL Server Database Mail subsystem mail profile.

System_CAPS_pubclassMailProfileCollection

The MailProfileCollection class represents a collection of MailProfile objects that represent all the mail profiles defined on the SQL Server Database Mail subsystem.

System_CAPS_pubclassMailServer

The MailServer class represents a SQL Server Database Mail subsystem mail server.

System_CAPS_pubclassMailServerCollection

The MailServerCollection class represents a collection of MailServer objects that represent all the mail servers defined on the SQL Server Database Mail subsystem.

System_CAPS_pubclassSqlMail

The SqlMail class represents the SQL Server Database Mail subsystem.

The Microsoft.SqlServer.Management.Smo.Mail namespace resides in the Micrsoft.SqlServer.Smo.dll. When you add a reference to the dll in your program, you can import this namespace and reference all the classes in it.

By using the SMO Mail objects, you can do the following:

  • Create and modify mail accounts.

  • Create and modify mail profiles.

  • Configure mail servers.

Return to top

Community Additions

Show:
© 2015 Microsoft