WebMail.SmtpServer Property

Gets or sets the name of the SMTP server that is used to transmit the email message.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public Shared Property SmtpServer As String 
    Get 
    Set
'Usage
Dim value As String 

value = WebMail.SmtpServer 

WebMail.SmtpServer = value
public static string SmtpServer { get; set; }
public:
static property String^ SmtpServer {
    String^ get ();
    void set (String^ value);
}
static member SmtpServer : string with get, set
static function get SmtpServer () : String 
static function set SmtpServer (value : String)

Property Value

Type: System.String
The SMTP server.

Remarks

This property is typically set one time in the _AppStart.cshtml file.

See Also

Reference

WebMail Class

System.Web.Helpers Namespace