ss="methodSignature">void&nbsp;setDataHandler&#8203;(jakarta.activation.DataHandler&nbsp;dh)
             throws <a href="MessagingException.html" title="class in jakarta.mail">MessagingException</a></pre>
<div class="block">This method provides the mechanism to set this part's content.
 The DataHandler wraps around the actual content.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dh</code> - The DataHandler for the content.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
