SendMailMessage.SmtpServer Property

Definition

Specifies the name of the Host used to send the email. This host name will be assigned
to the Powershell variable PSEmailServer,if this host can not reached an appropriate error message will be displayed.

public:
 property System::String ^ SmtpServer { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ SmtpServer { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Management.Automation.Alias(new System.String[] { "ComputerName" })]
[System.Management.Automation.Parameter(Position=3, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string SmtpServer { get; set; }
member this.SmtpServer : string with get, set
Public Property SmtpServer As String

Property Value

Attributes

Applies to