Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Microsoft.SqlServer.Management.Smo.Mail Namespace

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

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 within 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

ClassDescription
ConfigurationValueThe ConfigurationValue class represents a SQL Server Database Mail subsystem configuration option.
ConfigurationValueCollectionThe ConfigurationValueCollection class represents a collection of ConfigurationValue objects that represent all the configuration options defined on the SQL Server Database Mail subsystem.
MailAccountThe MailAccount class represents a SQL Server Database Mail subsystem mail account.
MailAccountCollectionThe MailAccountCollection class represents a collection of MailAccount objects that represent all the mail accounts defined on the SQL Server Database Mail subsystem.
MailProfileThe MailProfile class represents a SQL Server Database Mail subsystem mail profile.
MailProfileCollectionThe MailProfileCollection class represents a collection of MailProfile objects that represent all the mail profiles defined on the SQL Server Database Mail subsystem.
MailServerThe MailServer class represents a SQL Server Database Mail subsystem mail server.
MailServerCollectionThe MailServerCollection class represents a collection of MailServer objects that represent all the mail servers defined on the SQL Server Database Mail subsystem.
SqlMailThe SqlMail class represents the SQL Server Database Mail subsystem.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.