Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

MsgAddressCollection.Add Method

Namespace: Rebex.Mail
Assembly: Rebex.Msg.dll (version 7.0.9147)

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.

Implements
ICollection<T>.Add(T)
In This Article
  • Add(String, String)
  • Add(MsgAddressType, String, String)
  • Add(MsgAddress)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies