Ejemplo n.º 1
0
 /// <summary>
 ///     Add's an <see cref="RecipientType.Bcc"/> <see cref="Recipient"/>
 /// </summary>
 /// <param name="email">The full E-mail address</param>
 /// <param name="displayName">The displayname for the <paramref name="email"/></param>
 /// <param name="addressType">The <see cref="AddressType"/></param>
 /// <param name="objectType"><see cref="MapiObjectType"/></param>
 /// <param name="displayType"><see cref="RecipientRowDisplayType"/></param>
 public void AddBcc(string email,
                    string displayName                  = "",
                    AddressType addressType             = AddressType.Smtp,
                    MapiObjectType objectType           = MapiObjectType.MAPI_MAILUSER,
                    RecipientRowDisplayType displayType = RecipientRowDisplayType.MessagingUser)
 {
     Add(new Recipient(Count,
                       email,
                       displayName,
                       addressType,
                       RecipientType.Bcc,
                       objectType,
                       displayType));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Creates a new recipient object and sets all its properties
 /// </summary>
 /// <param name="rowId">Contains a unique identifier for a recipient in a recipient table or status table.</param>
 /// <param name="email">The full E-mail address</param>
 /// <param name="displayName">The displayname for the <paramref name="email"/></param>
 /// <param name="recipientType">The <see cref="RecipientType"/></param>
 /// <param name="addressType">The <see cref="AddressType"/></param>
 /// <param name="objectType"><see cref="MapiObjectType"/></param>
 /// <param name="displayType"><see cref="RecipientRowDisplayType"/></param>
 internal Recipient(long rowId,
                    string email,
                    string displayName,
                    AddressType addressType,
                    RecipientType recipientType,
                    MapiObjectType objectType,
                    RecipientRowDisplayType displayType) : base(email, displayName, addressType)
 {
     RowId         = rowId;
     Email         = email;
     DisplayName   = string.IsNullOrWhiteSpace(displayName) ? email : displayName;
     AddressType   = addressType;
     RecipientType = recipientType;
     DisplayType   = displayType;
     ObjectType    = objectType;
 }