Overview

MessageAddress determines the address of the e-mail message. It is used by MailMessage class to store information about sender and recipients of the e-mail message.

E-mail address, such as

my_name@myhost.com

have two parts. The part before @ sign is the local-part (username), and the part after he @ sign is the domain (hostname).

Location

  • Reference:
    • RemObjects.InternetPack.dll  .NET, .NET Core 5.0, .NET Standard 2.0
    • RemObjects.InternetPack.fx  Island
    • libRemObjects.InternetPack.fx  Toffee
  • Namespace: RemObjects.InternetPack.Messages

constructor


Address  virtual

Gets or sets a string that contains an e-mail address.

property Address: String read write;
String Address { get; set; }
var Address: String { get{} set{} }
Property Address() As String

Clear  virtual

Clears Address and Name.


description  override Toffee

func description() -> NSString

FromString  virtual

Converts a string-format address into valid Address and Name. For example,

DisplayName<my_name@myhost.com

In such case Name will be set to "DisplayName", and Address to "my_name@myhost.com".

method FromString(input: String)
void FromString(String input)
func FromString(_ input: String)
Sub FromString(input As String)

Parameters:

  • input:

IsSet  virtual

Returns whether property Address has associated value.

Function IsSet() As Boolean

Name  virtual

Gets or sets a string the display name associated with Address.

property Name: String read write;
String Name { get; set; }
var Name: String { get{} set{} }
Property Name() As String

ParseAddress  virtual

class method ParseAddress(address: String): MessageAddress
static MessageAddress ParseAddress(String address)
static func ParseAddress(_ address: String) -> MessageAddress
Shared Function ParseAddress(address As String) As MessageAddress

Parameters:

  • address:

ToString  virtual

method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString

Address  virtual

Gets or sets a string that contains an e-mail address.

property Address: String read write;
String Address { get; set; }
var Address: String { get{} set{} }
Property Address() As String

Name  virtual

Gets or sets a string the display name associated with Address.

property Name: String read write;
String Name { get; set; }
var Name: String { get{} set{} }
Property Name() As String

ParseAddress  virtual

class method ParseAddress(address: String): MessageAddress
static MessageAddress ParseAddress(String address)
static func ParseAddress(_ address: String) -> MessageAddress
Shared Function ParseAddress(address As String) As MessageAddress

Parameters:

  • address:

constructor


Clear  virtual

Clears Address and Name.


description  override Toffee

func description() -> NSString

FromString  virtual

Converts a string-format address into valid Address and Name. For example,

DisplayName<my_name@myhost.com

In such case Name will be set to "DisplayName", and Address to "my_name@myhost.com".

method FromString(input: String)
void FromString(String input)
func FromString(_ input: String)
Sub FromString(input As String)

Parameters:

  • input:

IsSet  virtual

Returns whether property Address has associated value.

Function IsSet() As Boolean

ToString  virtual

method ToString: PlatformString
PlatformString ToString()
func ToString() -> String
Function ToString() As PlatformString