code: private void setFrom(Email email, MimeMessage mimeMsg) throws MessagingException, AddressException, UnsupportedEncodingException {
  		if (email.getFrom() == null) {
  			throw new IllegalArgumentException("The sender address has not been set");
  		}
  		mimeMsg.setFrom(toInternetAddress(email.getFrom()));
  	}
docs: Set the sender address on the mime message.
  
  @param email
  the source email
  @param mimeMsg
  the mime message to fill
  @throws MessagingException
  when the email address is not valid
  @throws AddressException
  when the email address is not valid
  @throws UnsupportedEncodingException
  when the email address is not valid