code: public void sendEmail(final String theTo, final String theFrom, final String theSubject,
                            final String theContent) {
          if (null == smtpServerSetup) {
              throw new IllegalStateException("Can not send mail, no SMTP or SMTPS setup found");
          }
          GreenMailUtil.sendTextEmail(theTo, theFrom, theSubject, theContent, smtpServerSetup);
      }
docs: Sends a mail message to the GreenMail server.
  <p/>
  Note: SMTP or SMTPS must be configured.
  
  @param theTo      the <em>TO</em> field.
  @param theFrom    the <em>FROM</em>field.
  @param theSubject the subject.
  @param theContent the message content.