if(emailType.hasExtendedParams()) {
boolean initWithParamTypes = emailType.hasParams() || emailType.hasExtendedParams();
buildExtendParameters(emailType, initWithParamTypes, tmpSb);
}
EncodingType encType = emailType.getEncodingType();
switch(encType)
{
case BASE64:
case BINARY:
{
tmpSb.append(";ENCODING=");
tmpSb.append(encType.getType());
tmpSb.append(":");
byte[] emailBytes = null;
if(emailType.hasCharset()) {
emailBytes = emailType.getEmail().getBytes(emailType.getCharset().name());