mail">MessagingException</a></code> - for failures</dd>
</dl>
</li>
</ul>
<a id="setHeader(java.lang.String,java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHeader</h4>
<pre class="methodSignature">void&nbsp;setHeader&#8203;(java.lang.String&nbsp;header_name,
               java.lang.String&nbsp;header_value)
        throws <a href="MessagingException.html" title="class in jakarta.mail">MessagingException</a></pre>
<div class="block">Set the value for this header_name