jodd-mail/src/main/java/jodd/mail/CommonEmail.java
public T embeddedAttachment(final EmailAttachmentBuilder builder) {
		builder.setContentIdFromNameIfMissing();

		// https://github.com/oblac/jodd/issues/546
		// https://github.com/oblac/jodd/issues/404#issuecomment-297011351
		// content disposition will be set to "inline"
		builder.inline(true);

		return embeddedAttachment(builder.buildByteArrayDataSource());
	}
public T embeddedAttachment(final EmailAttachmentBuilder builder) {
		builder.setContentIdFromNameIfMissing();

		// https://github.com/oblac/jodd/issues/546
		// https://github.com/oblac/jodd/issues/404#issuecomment-297011351
		// content disposition will be set to "inline"
		builder.inline(true);

		return embeddedAttachment(builder.buildByteArrayDataSource());
	}
Attaches the embedded attachment: Content ID will be set if missing from attachment's file name.

@param builder {@link EmailAttachmentBuilder}
@return this
@see #embeddedAttachment(EmailAttachment)