PowerTCP Mail for .NET
To Property




Gets or sets the email address(es) of the primary recipient(s).
Syntax
Public Property To As String
Dim instance As MailMessage
Dim value As String
 
instance.To = value
 
value = instance.To
public string To {get; set;}
public: __property string* get_To();
public: __property void set_To( 
   string* value
);
public:
property String^ To {
   String^ get();
   void set (    String^ value);
}

Property Value

Decoded email address(es). A comma is used to separate multiple addresses.
Remarks

Gets or sets the "To:" header field, indicating the recipient(s) to which the message should be sent. Set to null or empty to remove the header field.

When set, the address format is standardized and the "friendly name" is word-encoded using HeaderDictionary.Encoding.

See Also

Reference

MailMessage Class
MailMessage Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic