Freigeben über


MailMessage.From Eigenschaft

Definition

Ruft die E-Mail-Adresse des Absenders ab oder legt diese fest. Empfohlene Alternative: 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

Eigenschaftswert

Die E-Mail-Adresse des Absenders.

Beispiele

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

Gilt für: