Example #1
0
        internal override void Send(BaseWriter writer)
        {
            writer.WriteHeaders(base.Headers);
            Stream     contentStream = writer.GetContentStream();
            MimeWriter writer2       = new MimeWriter(contentStream, base.ContentType.Boundary);

            foreach (MimeBasePart part in this.Parts)
            {
                part.Send(writer2);
            }
            writer2.Close();
            contentStream.Close();
        }
Example #2
0
        internal override void Send(BaseWriter writer, bool allowUnicode)
        {
            PrepareHeaders(allowUnicode);
            writer.WriteHeaders(Headers, allowUnicode);
            Stream     outputStream = writer.GetContentStream();
            MimeWriter mimeWriter   = new MimeWriter(outputStream, ContentType.Boundary);

            foreach (MimeBasePart part in Parts)
            {
                part.Send(mimeWriter, allowUnicode);
            }

            mimeWriter.Close();
            outputStream.Close();
        }
        internal override void Send(BaseWriter writer, bool allowUnicode) {
            PrepareHeaders(allowUnicode);
            writer.WriteHeaders(Headers, allowUnicode);
            Stream outputStream = writer.GetContentStream();
            MimeWriter mimeWriter = new MimeWriter(outputStream, ContentType.Boundary);

            foreach (MimeBasePart part in Parts) {
                part.Send(mimeWriter, allowUnicode);
            }

            mimeWriter.Close();
            outputStream.Close();
        }
Example #4
0
 internal override void Send(BaseWriter writer, bool allowUnicode)
 {
     base.PrepareHeaders(allowUnicode);
     writer.WriteHeaders(base.Headers, allowUnicode);
     var contentStream = writer.GetContentStream();
     var writer2 = new MimeWriter(contentStream, base.ContentType.Boundary);
     foreach (var part in Parts)
         part.Send(writer2, allowUnicode);
     writer2.Close();
     contentStream.Close();
 }
 internal override void Send(BaseWriter writer)
 {
     writer.WriteHeaders(base.Headers);
     Stream contentStream = writer.GetContentStream();
     MimeWriter writer2 = new MimeWriter(contentStream, base.ContentType.Boundary);
     foreach (MimeBasePart part in this.Parts)
     {
         part.Send(writer2);
     }
     writer2.Close();
     contentStream.Close();
 }