private MapiMessage BuildMapiMessage(Email email, Checks checks)
        {
            //Throws error if To is empty either 2 or 25
            if (!string.IsNullOrWhiteSpace(email.To))
            {
                AddRecipientTo(email.To);
            }

            if (!string.IsNullOrWhiteSpace(email.Attachment))
            {
                AddAttachment(email.Attachment);
            }

            var message = new MapiMessage
            {
                subject = email.Subject,
                //Add CRLF in an attempt to move cursor placement in open email message
                noteText = checks.AddCrlf ? $"{email.Body} {Environment.NewLine}" : email.Body
            };

            message.recipients = MapiRecipient.GetRecipients(out message.recipientCount);
            message.files      = MapiAttachment.GetAttachments(out message.fileCount);

            return(message);
        }
 public void AddAttachment(string strAttachmentFileName)
 {
     MapiAttachment.Add(strAttachmentFileName);
 }