s two methods:</p>
<ul>
<li><b>getSession</b>. Looks up the mail resource and creates a mail session.</li>
<li><b>sendMail</b>. Constructs and send the e-mail.</li>
</ul>
<p>The IDE also registers the resource reference in your module's general deployment descriptor. In your code, call the sendMail method and pass the e-mail address, subject, and body as parameters.</p>
<p><b>Note</b>: You have to configure the mail resource on the application server yourself. If your project's target server is the GlassFis