ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/program/jmlcrt.htm

48 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Configure a JavaMail session using the administrative console</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h5><a name="jmlcrt"></a>Configure a JavaMail session using the administrative console</h5>
<p>The WebSphere administrative console is used to configure a JavaMail session for a servlet or JavaServer Pages (JSP).</p>
<p>To configure a JavaMail session using the administrative console, perform these steps:</p>
<p>
<ol>
<li>Open the WebSphere Application Server administrative console. For more information, see <a href="../admin/acstart.htm">Start the WebSphere administrative console</a> in the <em>Administration</em> topic.</li>
<li>In the topology tree, expand <strong>Resources</strong>, and click <strong>Mail Providers</strong>.</li>
<li>Select the <strong>Server</strong> radio button, and click <strong>Apply</strong>.</li>
<li>Click <strong>Built-in Mail Provider</strong>.</li>
<li>Click <strong>Mail Sessions</strong>, and click <strong>New</strong> to create a new Mail Session.</li>
<li>Fill in these fields:
<ul>
<li><strong>Name</strong><br>
This is a required field.</li>
<li><strong>JNDI Name</strong><br>
This is a required field. It specifies the Java Naming and Directory Interface (JNDI) name for the resource, including any naming subcontexts.</li>
<li><strong>Mail Transport Host</strong><br>
This is a required field. Enter a value such as <tt>yourcompany.com</tt>.</li>
<li><strong>Mail From</strong><br>
This is a required field. Enter a value such as <tt>userid@yourcompany.com</tt>.</li>
</ul>
</li>
<li>Click <strong>OK</strong>.</li>
<li>Click <strong>Save</strong> on the toolbar to save the configuration.</li>
<li>Click <strong>Save</strong> again to update the master repository with your changes.</li>
<li>Restart your application server instance. For more information, see <a href="../admin/guistrtntstapp.htm">Start and test your application server</a> in the <em>Administration</em> topic.</li>
</ol>
</p>
</body>
</html>