WebMail.SmtpPort Property
Gets or sets the port that is used for SMTP transactions.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Shared Property SmtpPort As Integer
Get
Set
'Usage
Dim value As Integer
value = WebMail.SmtpPort
WebMail.SmtpPort = value
public static int SmtpPort { get; set; }
public:
static property int SmtpPort {
int get ();
void set (int value);
}
static member SmtpPort : int with get, set
static function get SmtpPort () : int
static function set SmtpPort (value : int)
Property Value
Type: System.Int32
The port that is used for SMTP transactions.
Remarks
This property is typically set one time in the _AppStart.cshtml file. Typically, an email client submits an email message using port 25 or port 587.