docs: public void sendEmail(CmsObject cms) throws Exception {
  
          // create a plain text email
          CmsSimpleMail theMail = new CmsSimpleMail();
          theMail.setCharset(cms.getRequestContext().getEncoding());
          theMail.setFrom(cms.getRequestContext().getCurrentUser().getEmail(), getFrom());
          theMail.setTo(createInternetAddresses(getTo()));
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getCc())) {
              theMail.setCc(createInternetAddresses(getCc()));
          }
          theMail.setSubject("[" + OpenCms.getSystemInfo().getServerName() + "] " + getSubject());
          theMail.setMsg(getMsg());
          // send the mail
          theMail.send();
      }