code: public void sendMail(String toAddress, String subject, String content) {
          final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
  
          logger.debug("Sending mail...");
          Properties props = System.getProperties();
          props.setProperty("mail.smtp.host", "smtp.gmail.com");
          props.setProperty("mail.smtp.socketFactory.class", SSL_FACTORY);
          props.setProperty("mail.smtp.socketFactory.fallback", "false");
          props.setProperty("mail.smtp.port", "465");
          props.setProperty("mail.smtp.socketFactory.port", "465");
          props.put("mail.smtp.auth", "true");
          props.put("mail.debug", "true");
          props.put("mail.store.protocol", "pop3");
          props.put("mail.transport.protocol", "smtp");
          final String username = "intellimate.izou@gmail.com";
          final String password = "Karlskrone"; // TODO: hide this when password stuff is done
  
          try{
              Session session = Session.getDefaultInstance(props, new Authenticator() {
                  protected PasswordAuthentication getPasswordAuthentication() {
                      return new PasswordAuthentication(username, password);
                  }
              });
  
              MimeMessage message = new MimeMessage(session);
              message.setFrom(new InternetAddress(username));
              message.addRecipient(Message.RecipientType.TO, new InternetAddress(toAddress));
              message.setSubject(subject);
              message.setText(content);
  
              Transport.send(message);
              logger.debug("Mail sent successfully.");
          } catch (MessagingException e) {
              logger.error("Unable to send mail.", e);
          }
      }
docs: Sends a mail to the address of {@code toAddress} with a subject of {@code subject} and a content of
  {@code content} WITHOUT an attachment
  
  @param toAddress the address to send the mail to
  @param subject the subject of the email to send
  @param content the content of the email (without attachment)