Export (0) Print
Expand All

SMTPConn Class

Contains the methods and properties used by SMTP connections.


Namespace:  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

[DtsConnectionAttribute(ConnectionType = "SMTP", LocalizationType = typeof(SMTPConn), 
	ConnectionContact = "Microsoft Corporation", UITypeName = "Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public class SMTPConn : ConnectionManagerBase, IDTSComponentPersist

The SMTPConn type exposes the following members.

Public methodSMTPConn()Initializes a new instance of the SMTPConn class.
Public methodSMTPConn(String)Initializes a new instance of the SMTPConn class, initializing the SMPT server name.
Public methodSMTPConn(String, Boolean, Boolean)Initializes a new instance of the SMTPConn class, initializing the SMPT server name, windows authentication, and setting for Secure Sockets Layer.

Public propertyStatic memberConnectionDescriptionReturns the localized description of the connection.
Public propertyStatic memberConnectionDisplayNameReturns the localized display name of the connection.
Public propertyConnectionStringGets or sets the connection string for the SMTP connection. (Overrides ConnectionManagerBase.ConnectionString.)
Public propertyEnableSslGets or sets a Boolean indicating whether to encrypt communication using Secure Sockets Layer (SSL) when sending e-mail messages.
Public propertyProtectionLevelGets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information. (Inherited from ConnectionManagerBase.)
Public propertyScopeGets the DTS connection manager scope for this ConnectionManagerBase object. (Inherited from ConnectionManagerBase.)
Public propertySmtpServerGets or sets the name used to connect to the SMTP server.
Public propertySupportsDTCTransactionsReturns a Boolean that indicates if the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions. (Inherited from ConnectionManagerBase.)
Public propertyTimeoutGets or sets the timeout request made by the connection.
Public propertyUseWindowsAuthenticationGets or sets a Boolean indicating whether to access the SMTP server using Windows Authentication.
Public propertyVersionReturns the version of this connection manager. (Inherited from ConnectionManagerBase.)

Public methodAcquireConnectionEstablishes the SMTP connection and returns a connection object. (Overrides ConnectionManagerBase.AcquireConnection(Object).)
Public methodCanUpdateGets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version. (Inherited from ConnectionManagerBase.)
Public methodEqualsDetermines whether two object instances are equal. (Inherited from DtsObject.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from DtsObject.)
Public methodGetType (Inherited from Object.)
Public methodLoadFromXMLThis method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReleaseConnectionFrees the connection established during AcquireConnection. Called at design time and run time. (Inherited from ConnectionManagerBase.)
Public methodSaveToXMLThis method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
Public methodSetQualifierChanges a qualifier on the connection manager after the connection manager has been created, but before it is run. (Inherited from ConnectionManagerBase.)
Public methodToString (Inherited from Object.)
Public methodUpdateUpdates the XML persisted by a previous version of the connection manager. (Inherited from ConnectionManagerBase.)
Public methodValidateValidates the connection and returns an enumeration that indicates success or failure. (Inherited from ConnectionManagerBase.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2015 Microsoft