code: public static EmailMessage setFromToEmailMessage(final String senderEmail,
  		final String senderPersonal, final String senderCharset, final EmailMessage emailMessage)
  		throws UnsupportedEncodingException, MessagingException
  	{
  		// Try to create the sender Address
  		Address senderAddress = null;
  		senderAddress = EmailExtensions.newAddress(senderEmail, senderPersonal, senderCharset);
  
  
  		// Set sender
  		if (null != senderAddress)
  		{
  			emailMessage.setFrom(senderAddress);
  		}
  		else
  		{
  			emailMessage.setFrom(senderEmail);
  		}
  		return emailMessage;
  	}
docs: Sets the from to the email message.
  
  @param senderEmail
  the sender email
  @param senderPersonal
  the sender personal
  @param senderCharset
  the sender charset
  @param emailMessage
  the email message
  @return the email message
  @throws UnsupportedEncodingException
  is thrown if the encoding not supported
  @throws MessagingException
  is thrown if the underlying implementation does not support modification of
  existing values