i have set this funciton in one loop but issue is only work in first tiime :      private static void SendMailTest()
            {
                var dto = qEmail.Dequeue();
    
                if (dto.Attachment != null && dto.Attachment.Length > 0)
                {
                    for (int i = 0; i < dto.Attachment.Length; i++)
                    {
                        if (dto.Attachment[i] != null)
                        {
    					
                            MemoryStream ms = new MemoryStream();
                            dto.Attachment[i].ContentStream.CopyTo(ms);                    
    						byte[] byteArr = ms.ToArray();
    						ms.Flush();
                            ms.Dispose();
                           
                        }
                    }
                }
    			}

not working this second time not copy in  dto.Attachment[i].ContentStream.CopyTo(ms); 