jodd-mail/src/main/java/jodd/mail/EMLParser.java
public ReceivedEmail parse(final String emlContent, final String charset) throws
			UnsupportedEncodingException, MessagingException {

		final byte[] bytes = emlContent.getBytes(charset);
		return parse(bytes);
	}
public ReceivedEmail parse(final String emlContent, final String charset) throws
			UnsupportedEncodingException, MessagingException {

		final byte[] bytes = emlContent.getBytes(charset);
		return parse(bytes);
	}
Parses EML with provided EML content.

@param emlContent {@link String} with EML content.
@param charset    String with charset.
@return {@link ReceivedEmail}.
@throws UnsupportedEncodingException if the named charset is not supported.
@throws MessagingException           if {@link MimeMessage} cannot be created.
@see #parse(byte[])