code: protected MimePart setupTextPart(CardView view, MimePart part, String text, TextType textType) {
          assertArgumentNotNull("view", view);
          assertArgumentNotNull("part", part);
          assertArgumentNotNull("text", text);
          assertArgumentNotNull("textType", textType);
          final String textEncoding = getTextEncoding(view);
          final ByteBuffer buffer = prepareTextByteBuffer(view, text, textEncoding);
          final DataSource source = prepareTextDataSource(view, buffer);
          try {
              part.setDataHandler(createDataHandler(source));
              if (!isSuppressTextTransferEncoding(view)) {
                  part.setHeader("Content-Transfer-Encoding", getTextTransferEncoding(view));
              }
              part.setHeader("Content-Type", buildTextContentType(view, textType, textEncoding));
          } catch (MessagingException e) {
              throw new SMailMessageSettingFailureException("Failed to set headers: postcard=" + view, e);
          }
          return part;
      }
docs: =========