Share via


MailMessage.From Vlastnost

Definice

Získá nebo nastaví e-mailovou adresu odesílatele. Doporučená alternativa: System.Net.Mail.

public:
 property System::String ^ From { System::String ^ get(); void set(System::String ^ value); };
public string From { get; set; }
member this.From : string with get, set
Public Property From As String

Hodnota vlastnosti

E-mailová adresa odesílatele.

Příklady

MailMessage MyMessage = new MailMessage();
MyMessage.From = "john@contoso.com";
Dim  MyMessage As MailMessage = New MailMessage()
MyMessage.From = "john@contoso.com"

Platí pro