code: @Override
      public void sendMessage(Message msg, Address[] addresses)
              throws MessagingException, SendFailedException {
  
          checkConnection();
          checkMessage(msg);
          checkAddresses(msg, addresses);
          collateRecipients(msg, addresses);
  
          SendRawEmailRequest req = prepareEmail(msg);
  
          sendEmail(msg, req);
      }
docs: Sends a MIME message through Amazon's E-mail Service with the specified
  recipients. Addresses that are passed into this method are merged with
  the ones already embedded in the message (duplicates are removed).
  
  @param msg
  A Mime type e-mail message to be sent
  @param addresses
  Additional e-mail addresses (RFC-822) to be included in the
  message