MsgAddressCollection.Add Method
Namespace: Rebex.Mail
Assembly: Rebex.Msg.dll (version 7.0.9083)
Add(String, String)
Adds an SMTP address to the collection.
Declaration
public MsgAddress Add(string emailAddress, string displayName = null)
Parameters
Type | Name | Description |
---|---|---|
String | emailAddress | An e-mail address. If the value starts with slash "/" the address type is set to Exchange; otherwise the address type is set to Smtp. |
String | displayName | A display name of the e-mail address. |
Returns
Type | Description |
---|---|
MsgAddress |
Add(MsgAddressType, String, String)
Adds an e-mail address to the collection.
Declaration
public MsgAddress Add(MsgAddressType addressType, string emailAddress, string displayName = null)
Parameters
Type | Name | Description |
---|---|---|
MsgAddressType | addressType | A type of the e-mail address. |
String | emailAddress | An e-mail address to add. |
String | displayName | A display name of the e-mail address. |
Returns
Type | Description |
---|---|
MsgAddress |
Add(MsgAddress)
Adds an e-mail address to the collection.
Declaration
public void Add(MsgAddress address)
Parameters
Type | Name | Description |
---|---|---|
MsgAddress | address | An e-mail address to add. |