SendMailTask::SmtpConnection Property
Gets or sets the name or IP address of the Simple Mail Transfer Protocol (SMTP) server.
Assembly: Microsoft.SqlServer.SendMailTask (in Microsoft.SqlServer.SendMailTask.dll)
public: property String^ SmtpConnection { virtual String^ get() sealed; virtual void set(String^ value) sealed; }
Property Value
Type: System::String^A String containing the name or IP address of the Simple Mail Transfer Protocol (SMTP) server.
Implements
IDTSSendMailTask::SmtpConnectionThe following code sample creates, configures, and executes a new SendMailTask that uses the SmtpConnection property.
Show: