<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<!-- Generated by javadoc (build 1.6.0_10) on Tue Nov 17 12:13:42 PST 2009 -->
<
META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
SMTPTransport (JavaMail API documentation)
<
META NAME="date" CONTENT="2009-11-17">
<
LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<
SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SMTPTransport (JavaMail API documentation)";
}
}
<
BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<
A NAME="navbar_top"><!-- --><
/A>
<
A HREF="#skip-navbar_top" title="Skip navigation links"><
/A>
<
TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<
TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<
A NAME="navbar_top_firstrow"><!-- --><
/A>
<
TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<
TR ALIGN="center" VALIGN="top">
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../overview-summary.html"><
FONT CLASS="NavBarFont1"><
B>Overview<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="package-summary.html"><
FONT CLASS="NavBarFont1"><
B>Package<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <
FONT CLASS="NavBarFont1Rev"><
B>Class<
/B><
/FONT> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="class-use/SMTPTransport.html"><
FONT CLASS="NavBarFont1"><
B>Use<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="package-tree.html"><
FONT CLASS="NavBarFont1"><
B>Tree<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../deprecated-list.html"><
FONT CLASS="NavBarFont1"><
B>Deprecated<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../index-files/index-1.html"><
FONT CLASS="NavBarFont1"><
B>Index<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../help-doc.html"><
FONT CLASS="NavBarFont1"><
B>Help<
/B><
/FONT><
/A> <
/TD>
<
TD ALIGN="right" VALIGN="top" ROWSPAN=3><
EM>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../../com/sun/mail/smtp/SMTPSSLTransport.html" title="class in com.sun.mail.smtp"><
B>PREV CLASS<
/B><
/A>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../../index.html?com/sun/mail/smtp/SMTPTransport.html" target="_top"><
B>FRAMES<
/B><
/A>
<
A HREF="SMTPTransport.html" target="_top"><
B>NO FRAMES<
/B><
/A>
<
SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
<
A HREF="../../../../allclasses-noframe.html"><
B>All Classes<
/B><
/A>
<
TD VALIGN="top" CLASS="NavBarCell3"><
FONT SIZE="-2">
SUMMARY: NESTED | <
A HREF="#fields_inherited_from_class_javax.mail.Service">FIELD<
/A> | <
A HREF="#constructor_summary">CONSTR<
/A> | <
A HREF="#method_summary">METHOD<
/A><
/FONT><
/TD>
<
TD VALIGN="top" CLASS="NavBarCell3"><
FONT SIZE="-2">
DETAIL: FIELD | <
A HREF="#constructor_detail">CONSTR<
/A> | <
A HREF="#method_detail">METHOD<
/A><
/FONT><
/TD>
<
A NAME="skip-navbar_top"><
/A>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.
lang.Object<
/A>
<
IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><
A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">javax.mail.Service<
/A>
<
IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><
A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">javax.mail.Transport<
/A>
<
IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><
B>com.sun.mail.smtp.SMTPTransport<
/B>
<
DT><
B>Direct Known Subclasses:<
/B> <
DD><
A HREF="../../../../com/sun/mail/smtp/SMTPSSLTransport.html" title="class in com.sun.mail.smtp">SMTPSSLTransport<
/A><
/DD>
<
DT><
PRE>public
class <
B>SMTPTransport<
/B><
DT>extends <
A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">Transport<
/A><
/DL>
This class implements the Transport abstract class using SMTP for
message submission and transport. <
p>
See the <
a href="package-summary.html">com.sun.mail.smtp<
/a> package
documentation
for further information on the SMTP protocol provider. <
p>
This class includes many protected methods that allow a subclass to
extend this class and add support for non-standard SMTP commands.
The <
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#issueCommand(java.lang.String, int)"><
CODE>issueCommand
(java.
lang.String, int
)<
/CODE><
/A> and <
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#sendCommand(java.lang.String)"><
CODE>sendCommand
(java.
lang.String
)<
/CODE><
/A> methods can be
used to send simple SMTP commands. Other methods such as the
<
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#mailFrom()"><
CODE>mailFrom
()<
/CODE><
/A> and <
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#data()"><
CODE>
data()<
/CODE><
/A> methods can be overridden to
insert new commands before or after the corresponding SMTP commands.
For example, a subclass could do this to send the XACT command
before sending the DATA command:
protected OutputStream data() throws MessagingException {
if (supportsExtension("XACCOUNTING"))
issueCommand("XACT", 25);
return super.data();
}
<
DT><
B>See Also:<
/B><
DD><
A HREF="../../../../javax/mail/event/ConnectionEvent.html" title="class in javax.mail.event"><
CODE>ConnectionEvent<
/CODE><
/A>,
<
A HREF="../../../../javax/mail/event/TransportEvent.html" title="class in javax.mail.event"><
CODE>TransportEvent<
/CODE><
/A><
/DL>
<!-- =========== FIELD SUMMARY =========== -->
<
A NAME="field_summary"><!-- --><
/A>
<
TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<
TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<
TH ALIGN="left" COLSPAN="2"><
FONT SIZE="+2">
<
A NAME="fields_inherited_from_class_javax.mail.Service"><!-- --><
/A>
<
TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<
TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<
TH ALIGN="left"><
B>Fields inherited from
class javax.mail.<
A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">Service<
/A><
/B><
/TH>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD><
CODE><
A HREF="../../../../javax/mail/Service.html#debug">debug<
/A>, <
A HREF="../../../../javax/mail/Service.html#session">session<
/A>, <
A HREF="../../../../javax/mail/Service.html#url">url<
/A><
/CODE><
/TD>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<
A NAME="constructor_summary"><!-- --><
/A>
<
TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<
TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<
TH ALIGN="left" COLSPAN="2"><
FONT SIZE="+2">
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#SMTPTransport(javax.mail.Session, javax.mail.URLName)">SMTPTransport<
/A><
/B>
(<
A HREF="../../../../javax/mail/Session.html" title="class in javax.mail">Session<
/A> session,
<
A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName<
/A> urlname
)<
/CODE>
Constructor that takes a Session object and a URLName
that represents a specific SMTP server.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#SMTPTransport(javax.mail.Session, javax.mail.URLName, java.lang.String, boolean)">SMTPTransport<
/A><
/B>
(<
A HREF="../../../../javax/mail/Session.html" title="class in javax.mail">Session<
/A> session,
<
A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName<
/A> urlname,
<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A>
name,
boolean isSSL
)<
/CODE>
Constructor used by this
class and by SMTPSSLTransport subclass.<
/TD>
<!-- ========== METHOD SUMMARY =========== -->
<
A NAME="method_summary"><!-- --><
/A>
<
TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<
TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<
TH ALIGN="left" COLSPAN="2"><
FONT SIZE="+2">
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#checkConnected()">checkConnected<
/A><
/B>
()<
/CODE>
Check if we're in the connected state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#close()">close</A></B>()</CODE>
<BR>
Close the Transport and terminate the connection to the server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#connect(java.net.Socket)">connect</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</A> socket)</CODE>
<BR>
Start the SMTP protocol on the given socket, which was already
connected by the caller.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#data()">data</A></B>()</CODE>
<BR>
Send the <code>DATA</code> command to the SMTP host and return
an OutputStream to which the data is to be written.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#ehlo(java.lang.String)">ehlo</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> domain)</CODE>
<BR>
Issue the <code>EHLO</code> command.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#finalize()">finalize</A></B>()</CODE>
<BR>
Stop the event dispatcher thread so the queue can be garbage collected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#finishData()">finishData</A></B>()</CODE>
<BR>
Terminate the sent data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getExtensionParameter(java.lang.String)">getExtensionParameter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> ext)</CODE>
<BR>
Return the parameter the server provided for the specified
service extension, or null if the extension isn't supported.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getLastReturnCode()">getLastReturnCode<
/A><
/B>
()<
/CODE>
Return the return
code from the last response we got from the server.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
CODE> <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A><
/CODE><
/FONT><
/TD>
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getLastServerResponse()">getLastServerResponse<
/A><
/B>
()<
/CODE>
Return the last response we got from the server.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
CODE> <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A><
/CODE><
/FONT><
/TD>
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getLocalHost()">getLocalHost<
/A><
/B>
()<
/CODE>
Get the
name of the local host,
for use in the EHLO and HELO commands.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getNoopStrict()">getNoopStrict<
/A><
/B>
()<
/CODE>
Is the NOOP command required to return a response code
of
250 to indicate success?<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
CODE> <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A><
/CODE><
/FONT><
/TD>
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getNTLMDomain()">getNTLMDomain<
/A><
/B>
()<
/CODE>
Gets the NTLM domain to be used
for NTLM authentication.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getReportSuccess()">getReportSuccess<
/A><
/B>
()<
/CODE>
Should we report even successful sends by throwing an exception?
If so, a <
code>SendFailedException<
/code> will always be thrown and
an <
A HREF="../../../../com/sun/mail/smtp/SMTPAddressSucceededException.html" title="class in com.sun.mail.smtp"><
CODE>SMTPAddressSucceededException<
/CODE><
/A> will be included in the exception
chain for each successful address, along with the usual
<
A HREF="../../../../com/sun/mail/smtp/SMTPAddressFailedException.html" title="class in com.sun.mail.smtp"><
CODE>SMTPAddressFailedException<
/CODE><
/A>
for each unsuccessful address.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getRequireStartTLS()">getRequireStartTLS<
/A><
/B>
()<
/CODE>
Should we require the STARTTLS command to secure the connection?<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
CODE> <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A><
/CODE><
/FONT><
/TD>
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getSASLRealm()">getSASLRealm<
/A><
/B>
()<
/CODE>
Gets the SASL realm to be used
for DIGEST-MD5 authentication.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getStartTLS()">getStartTLS<
/A><
/B>
()<
/CODE>
Should we use the STARTTLS command to secure the connection
if the server supports it?<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getUseRset()">getUseRset<
/A><
/B>
()<
/CODE>
Should we use the RSET command instead of the NOOP command
in the @
{link #isConnected isConnected
} method?<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#helo(java.lang.String)">helo<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> domain
)<
/CODE>
Issue the <
code>HELO<
/code> command.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#isConnected()">isConnected<
/A><
/B>
()<
/CODE>
Check whether the transport is connected.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#issueCommand(java.lang.String, int)">issueCommand<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> cmd,
Send the command to the server.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#mailFrom()">mailFrom<
/A><
/B>
()<
/CODE>
Issue the <
code>MAIL FROM:<
/code> command to
start sending a message.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#notifyTransportListeners(int, javax.mail.Address[], javax.mail.Address[], javax.mail.Address[], javax.mail.Message)">notifyTransportListeners<
/A><
/B>
(int
type,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] validSent,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] validUnsent,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] invalid,
<
A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message<
/A> msg
)<
/CODE>
Notify all TransportListeners.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)">protocolConnect<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> host,
int port,
<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> user,
<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> passwd
)<
/CODE>
Performs the actual protocol-specific connection attempt.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#rcptTo()">rcptTo<
/A><
/B>
()<
/CODE>
Sends each address to the SMTP host using the <
code>RCPT TO:<
/code>
command and copies the address either into
the validSentAddr or invalidAddr arrays.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#readServerResponse()">readServerResponse<
/A><
/B>
()<
/CODE>
Reads server reponse returning the <
code>returnCode<
/code>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#sendCommand(java.lang.String)">sendCommand<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> cmd
)<
/CODE>
Sends command <
code>cmd<
/code> to the server terminating
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#sendMessage(javax.mail.Message, javax.mail.Address[])">sendMessage<
/A><
/B>
(<
A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message<
/A> message,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] addresses
)<
/CODE>
Send the Message to the specified list of addresses.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setLocalHost(java.lang.String)">setLocalHost<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> localhost
)<
/CODE>
Set the
name of the local host,
for use in the EHLO and HELO commands.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setNoopStrict(boolean)">setNoopStrict<
/A><
/B>
(boolean noopStrict
)<
/CODE>
Set whether the NOOP command is required to return a response code
of
250 to indicate success.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setNTLMDomain(java.lang.String)">setNTLMDomain<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> ntlmDomain
)<
/CODE>
Sets the NTLM domain to be used
for NTLM authentication.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setReportSuccess(boolean)">setReportSuccess<
/A><
/B>
(boolean reportSuccess
)<
/CODE>
Set whether successful sends should be reported by throwing
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setRequireStartTLS(boolean)">setRequireStartTLS<
/A><
/B>
(boolean requireStartTLS
)<
/CODE>
Set whether the STARTTLS command should be required.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setSASLRealm(java.lang.String)">setSASLRealm<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> saslRealm
)<
/CODE>
Sets the SASL realm to be used
for DIGEST-MD5 authentication.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setStartTLS(boolean)">setStartTLS<
/A><
/B>
(boolean useStartTLS
)<
/CODE>
Set whether the STARTTLS command should be used.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setUseRset(boolean)">setUseRset<
/A><
/B>
(boolean useRset
)<
/CODE>
Set whether the RSET command should be used instead of the
NOOP command in the @
{link #isConnected isConnected
} method.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#simpleCommand(byte[])">simpleCommand<
/A><
/B>
(byte
[] cmd
)<
/CODE>
Send the command to the server and return the response code
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#simpleCommand(java.lang.String)">simpleCommand<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> cmd
)<
/CODE>
Send the command to the server and return the response code
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#startTLS()">startTLS<
/A><
/B>
()<
/CODE>
Issue the <
code>STARTTLS<
/code> command and switch the socket to
TLS mode if it succeeds.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#supportsAuthentication(java.lang.String)">supportsAuthentication<
/A><
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> auth
)<
/CODE>
Does the server we're connected to support the specified
authentication mechanism? Uses the extension information
returned by the server from the EHLO command.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#supportsExtension(java.lang.String)">supportsExtension</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> ext)</CODE>
<BR>
Return true if the SMTP server supports the specified service
extension.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#xtext(java.lang.String)">xtext</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</CODE>
<BR>
Convert a string to RFC 1891 xtext format.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.mail.Transport"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class javax.mail.<A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../javax/mail/Transport.html#addTransportListener(javax.mail.event.TransportListener)">addTransportListener</A>, <A HREF="../../../../javax/mail/Transport.html#removeTransportListener(javax.mail.event.TransportListener)">removeTransportListener</A>, <A HREF="../../../../javax/mail/Transport.html#send(javax.mail.Message)">send</A>, <A HREF="../../../../javax/mail/Transport.html#send(javax.mail.Message, javax.mail.Address[])">send</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.mail.Service"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class javax.mail.<A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">Service</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../javax/mail/Service.html#addConnectionListener(javax.mail.event.ConnectionListener)">addConnectionListener</A>, <A HREF="../../../../javax/mail/Service.html#connect()">connect</A>, <A HREF="../../../../javax/mail/Service.html#connect(java.lang.String, int, java.lang.String, java.lang.String)">connect</A>, <A HREF="../../../../javax/mail/Service.html#connect(java.lang.String, java.lang.String)">connect</A>, <A HREF="../../../../javax/mail/Service.html#connect(java.lang.String, java.lang.String, java.lang.String)">connect</A>, <A HREF="../../../../javax/mail/Service.html#getURLName()">getURLName</A>, <A HREF="../../../../javax/mail/Service.html#notifyConnectionListeners(int)">notifyConnectionListeners</A>, <A HREF="../../../../javax/mail/Service.html#queueEvent(javax.mail.event.MailEvent, java.util.Vector)">queueEvent</A>, <A HREF="../../../../javax/mail/Service.html#removeConnectionListener(javax.mail.event.ConnectionListener)">removeConnectionListener</A>, <A HREF="../../../../javax/mail/Service.html#setConnected(boolean)">setConnected</A>, <A HREF="../../../../javax/mail/Service.html#setURLName(javax.mail.URLName)">setURLName</A>, <A HREF="../../../../javax/mail/Service.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SMTPTransport(javax.mail.Session, javax.mail.URLName)"><!-- --></A><H3>
SMTPTransport</H3>
<PRE>
public <B>SMTPTransport</B>(<A HREF="../../../../javax/mail/Session.html" title="class in javax.mail">Session</A> session,
<A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A> urlname)</PRE>
<DL>
<DD>Constructor that takes a Session object and a URLName
that represents a specific SMTP server.
<P>
</DL>
<HR>
<A NAME="SMTPTransport(javax.mail.Session, javax.mail.URLName, java.lang.String, boolean)"><!-- --></A><H3>
SMTPTransport</H3>
<PRE>
protected <B>SMTPTransport</B>(<A HREF="../../../../javax/mail/Session.html" title="class in javax.mail">Session</A> session,
<A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A> urlname,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name,
boolean isSSL)</PRE>
<DL>
<DD>Constructor used by this class and by SMTPSSLTransport subclass.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getLocalHost()"><!-- --></A><H3>
getLocalHost</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getLocalHost</B>()</PRE>
<DL>
<DD>Get the name of the local host, for use in the EHLO and HELO commands.
The property mail.smtp.localhost overrides mail.smtp.localaddress,
which overrides what InetAddress would tell us.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setLocalHost(java.lang.String)"><!-- --></A><H3>
setLocalHost</H3>
<PRE>
public void <B>setLocalHost</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> localhost)</PRE>
<DL>
<DD>Set the name of the local host, for use in the EHLO and HELO commands.
<P>
<DD><DL>
<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="connect(java.net.Socket)"><!-- --></A><H3>
connect</H3>
<PRE>
public void <B>connect</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</A> socket)
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Start the SMTP protocol on the given socket, which was already
connected by the caller. Useful for implementing the SMTP ATRN
command (RFC 2645) where an existing connection is used when
the server reverses roles and becomes the client.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
<DD>JavaMail 1.3.3</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSASLRealm()"><!-- --></A><H3>
getSASLRealm</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getSASLRealm</B>()</PRE>
<DL>
<DD>Gets the SASL realm to be used for DIGEST-MD5 authentication.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the name of the realm to use for SASL authentication.<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setSASLRealm(java.lang.String)"><!-- --></A><H3>
setSASLRealm</H3>
<PRE>
public void <B>setSASLRealm</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> saslRealm)</PRE>
<DL>
<DD>Sets the SASL realm to be used for DIGEST-MD5 authentication.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>saslRealm</CODE> - the name of the realm to use for
SASL authentication.<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNTLMDomain()"><!-- --></A><H3>
getNTLMDomain</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getNTLMDomain</B>()</PRE>
<DL>
<DD>Gets the NTLM domain to be used for NTLM authentication.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the name of the domain to use for NTLM authentication.<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.3</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setNTLMDomain(java.lang.String)"><!-- --></A><H3>
setNTLMDomain</H3>
<PRE>
public void <B>setNTLMDomain</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> ntlmDomain)</PRE>
<DL>
<DD>Sets the NTLM domain to be used for NTLM authentication.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ntlmDomain</CODE> - the name of the domain to use for
NTLM authentication.<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.3</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getReportSuccess()"><!-- --></A><H3>
getReportSuccess</H3>
<PRE>
public boolean <B>getReportSuccess</B>()</PRE>
<DL>
<DD>Should we report even successful sends by throwing an exception?
If so, a <code>SendFailedException</code> will always be thrown and
an <A HREF="../../../../com/sun/mail/smtp/SMTPAddressSucceededException.html" title="class in com.sun.mail.smtp"><CODE>SMTPAddressSucceededException</CODE></A> will be included in the exception
chain for each successful address, along with the usual
<A HREF="../../../../com/sun/mail/smtp/SMTPAddressFailedException.html" title="class in com.sun.mail.smtp"><CODE>SMTPAddressFailedException</CODE></A> for each unsuccessful address.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if an exception will be thrown on successful sends.<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setReportSuccess(boolean)"><!-- --></A><H3>
setReportSuccess</H3>
<PRE>
public void <B>setReportSuccess</B>(boolean reportSuccess)</PRE>
<DL>
<DD>Set whether successful sends should be reported by throwing
an exception.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>reportSuccess</CODE> - should we throw an exception on success?<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getStartTLS()"><!-- --></A><H3>
getStartTLS</H3>
<PRE>
public boolean <B>getStartTLS</B>()</PRE>
<DL>
<DD>Should we use the STARTTLS command to secure the connection
if the server supports it?
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the STARTTLS command will be used<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setStartTLS(boolean)"><!-- --></A><H3>
setStartTLS</H3>
<PRE>
public void <B>setStartTLS</B>(boolean useStartTLS)</PRE>
<DL>
<DD>Set whether the STARTTLS command should be used.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>useStartTLS</CODE> - should we use the STARTTLS command?<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRequireStartTLS()"><!-- --></A><H3>
getRequireStartTLS</H3>
<PRE>
public boolean <B>getRequireStartTLS</B>()</PRE>
<DL>
<DD>Should we require the STARTTLS command to secure the connection?
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the STARTTLS command will be required<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setRequireStartTLS(boolean)"><!-- --></A><H3>
setRequireStartTLS</H3>
<PRE>
public void <B>setRequireStartTLS</B>(boolean requireStartTLS)</PRE>
<DL>
<DD>Set whether the STARTTLS command should be required.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>requireStartTLS</CODE> - should we require the STARTTLS command?<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getUseRset()"><!-- --></A><H3>
getUseRset</H3>
<PRE>
public boolean <B>getUseRset</B>()</PRE>
<DL>
<DD>Should we use the RSET command instead of the NOOP command
in the @{link #isConnected isConnected} method?
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if RSET will be used<DT><B>Since:</B></DT>
<DD>JavaMail 1.4</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setUseRset(boolean)"><!-- --></A><H3>
setUseRset</H3>
<PRE>
public void <B>setUseRset</B>(boolean useRset)</PRE>
<DL>
<DD>Set whether the RSET command should be used instead of the
NOOP command in the @{link #isConnected isConnected} method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>useRset</CODE> - should we use the RSET command?<DT><B>Since:</B></DT>
<DD>JavaMail 1.4</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNoopStrict()"><!-- --></A><H3>
getNoopStrict</H3>
<PRE>
public boolean <B>getNoopStrict</B>()</PRE>
<DL>
<DD>Is the NOOP command required to return a response code
of 250 to indicate success?
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if NOOP must return 250<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.3</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setNoopStrict(boolean)"><!-- --></A><H3>
setNoopStrict</H3>
<PRE>
public void <B>setNoopStrict</B>(boolean noopStrict)</PRE>
<DL>
<DD>Set whether the NOOP command is required to return a response code
of 250 to indicate success.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>noopStrict</CODE> - is NOOP required to return 250?<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.3</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLastServerResponse()"><!-- --></A><H3>
getLastServerResponse</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getLastServerResponse</B>()</PRE>
<DL>
<DD>Return the last response we got from the server.
A failed send is often followed by an RSET command,
but the response from the RSET command is not saved.
Instead, this returns the response from the command
before the RSET command.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>last response from server<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLastReturnCode()"><!-- --></A><H3>
getLastReturnCode</H3>
<PRE>
public int <B>getLastReturnCode</B>()</PRE>
<DL>
<DD>Return the return code from the last response we got from the server.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>return code from last response from server<DT><B>Since:</B></DT>
<DD>JavaMail 1.4.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
protocolConnect</H3>
<PRE>
protected boolean <B>protocolConnect</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host,
int port,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> user,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> passwd)
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Performs the actual protocol-specific connection attempt.
Will attempt to connect to "localhost" if the host was null. <p>
Unless mail.smtp.ehlo is set to false, we'll try to identify
ourselves using the ESMTP command EHLO.
If mail.smtp.auth is set to true, we insist on having a username
and password, and will try to authenticate ourselves if the server
supports the AUTH extension (RFC 2554).
<
DT><
B>Overrides:<
/B><
DD><
CODE><
A HREF="../../../../javax/mail/Service.html#protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)">protocolConnect<
/A><
/CODE> in
class <
CODE><
A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">Service<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>host<
/CODE> - the
name of the host to connect to<
DD><
CODE>port<
/CODE> - the port to use
(-
1 means use default port
)<
DD><
CODE>user<
/CODE> - the
name of the user to login as<
DD><
CODE>passwd<
/CODE> - the user
's password
<DT><B>Returns:</B><DD>true if connection successful, false if authentication failed
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE> - for non-authentication failures</DL>
</DD>
</DL>
<HR>
<A NAME="sendMessage(javax.mail.Message, javax.mail.Address[])"><!-- --></A><H3>
sendMessage</H3>
<PRE>
public void <B>sendMessage</B>(<A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message</A> message,
<A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] addresses)
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A>,
<A HREF="../../../../javax/mail/SendFailedException.html" title="class in javax.mail">SendFailedException</A></PRE>
<DL>
<DD>Send the Message to the specified list of addresses.<p>
If all the <code>addresses</code> succeed the SMTP check
using the <code>RCPT TO:</code> command, we attempt to send the message.
A TransportEvent of type MESSAGE_DELIVERED is fired indicating the
successful submission of a message to the SMTP host.<p>
If some of the <code>addresses</code> fail the SMTP check,
and the <code>mail.stmp.sendpartial</code> property is not set,
sending is aborted. The TransportEvent of type MESSAGE_NOT_DELIVERED
is fired containing the valid and invalid addresses. The
SendFailedException is also thrown. <p>
If some of the <code>addresses</code> fail the SMTP check,
and the <code>mail.stmp.sendpartial</code> property is set to true,
the message is sent. The TransportEvent of type
MESSAGE_PARTIALLY_DELIVERED
is fired containing the valid and invalid addresses. The
SMTPSendFailedException is also thrown. <p>
MessagingException is thrown if the message can't write out
an RFC822-compliant stream using its <
code>writeTo<
/code>
method. <
p>
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../../javax/mail/Transport.html#sendMessage(javax.mail.Message, javax.mail.Address[])">sendMessage<
/A><
/CODE> in
class <
CODE><
A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">Transport<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>message<
/CODE> - The MimeMessage to be sent<
DD><
CODE>addresses<
/CODE> - List of addresses to send this message to
<
DD><
CODE><
A HREF="../../../../com/sun/mail/smtp/SMTPSendFailedException.html" title="class in com.sun.mail.smtp">SMTPSendFailedException<
/A><
/CODE> - if the send failed because of
an SMTP command error
<
DD><
CODE><
A HREF="../../../../javax/mail/SendFailedException.html" title="class in javax.mail">SendFailedException<
/A><
/CODE> - if the send failed because of
invalid addresses.
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE> - if the connection is dead
or not in the connected state or if the message is
not a MimeMessage.<
DT><
B>See Also:<
/B><
DD><
A HREF="../../../../javax/mail/event/TransportEvent.html" title="class in javax.mail.event"><
CODE>TransportEvent<
/CODE><
/A><
/DL>
<
A NAME="close()"><!-- --><
/A><
H3>
public void <
B>close<
/B>
()
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD>Close the Transport and terminate the connection to the server.
<
DT><
B>Overrides:<
/B><
DD><
CODE><
A HREF="../../../../javax/mail/Service.html#close()">close<
/A><
/CODE> in
class <
CODE><
A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">Service<
/A><
/CODE><
/DL>
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE> -
for errors while closing<
DT><
B>See Also:<
/B><
DD><
A HREF="../../../../javax/mail/event/ConnectionEvent.html" title="class in javax.mail.event"><
CODE>ConnectionEvent<
/CODE><
/A><
/DL>
<
A NAME="isConnected()"><!-- --><
/A><
H3>
public boolean <
B>isConnected<
/B>
()<
/PRE>
<
DD>Check whether the transport is connected. Override superclass
method, to actually ping our server connection.
<
DT><
B>Overrides:<
/B><
DD><
CODE><
A HREF="../../../../javax/mail/Service.html#isConnected()">isConnected<
/A><
/CODE> in
class <
CODE><
A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">Service<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>true if the service is connected, false if it is not connected<
/DL>
<
A NAME="notifyTransportListeners(int, javax.mail.Address[], javax.mail.Address[], javax.mail.Address[], javax.mail.Message)"><!-- --><
/A><
H3>
notifyTransportListeners<
/H3>
protected void <
B>notifyTransportListeners<
/B>
(int
type,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] validSent,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] validUnsent,
<
A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address<
/A>
[] invalid,
<
A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message<
/A> msg
)<
/PRE>
<
DD>Notify all TransportListeners. Keep track of whether notification
has been done so as to only notify once per send.
<
DT><
B>Overrides:<
/B><
DD><
CODE><
A HREF="../../../../javax/mail/Transport.html#notifyTransportListeners(int, javax.mail.Address[], javax.mail.Address[], javax.mail.Address[], javax.mail.Message)">notifyTransportListeners<
/A><
/CODE> in
class <
CODE><
A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">Transport<
/A><
/CODE><
/DL>
<
A NAME="finalize()"><!-- --><
/A><
H3>
protected void <
B>finalize<
/B>
()
throws <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable<
/A><
/PRE>
<
DD><
B>Description copied from
class: <
CODE><
A HREF="../../../../javax/mail/Service.html#finalize()">Service<
/A><
/CODE><
/B><
/DD>
<
DD>Stop the event dispatcher thread so the queue can be garbage collected.
<
DT><
B>Overrides:<
/B><
DD><
CODE><
A HREF="../../../../javax/mail/Service.html#finalize()">finalize<
/A><
/CODE> in
class <
CODE><
A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">Service<
/A><
/CODE><
/DL>
<
DD><
CODE><
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable<
/A><
/CODE><
/DL>
<
A NAME="helo(java.lang.String)"><!-- --><
/A><
H3>
protected void <
B>helo<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> domain
)
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="ehlo(java.lang.String)"><!-- --><
/A><
H3>
protected boolean <
B>ehlo<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> domain
)
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
Collect the returned list of service extensions.
<
DT><
B>Returns:<
/B><
DD>true if command succeeds
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="mailFrom()"><!-- --><
/A><
H3>
protected void <
B>mailFrom<
/B>
()
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD>Issue the <
code>MAIL FROM:<
/code> command to
start sending a message. <
p>
Gets the sender's address in the following order:
<ol>
<li>SMTPMessage.getEnvelopeFrom()</li>
<li>mail.smtp.from property</li>
<li>From: header in the message</li>
<li>System username using the
InternetAddress.getLocalAddress() method</li>
</ol>
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
<DD>JavaMail 1.4.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="rcptTo()"><!-- --></A><H3>
rcptTo</H3>
<PRE>
protected void <B>rcptTo</B>()
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Sends each address to the SMTP host using the <code>RCPT TO:</code>
command and copies the address either into
the validSentAddr or invalidAddr arrays.
Sets the <code>sendFailed</code>
flag to true if any addresses failed.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
<DD>JavaMail 1.4.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="data()"><!-- --></A><H3>
data</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> <B>data</B>()
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Send the <code>DATA</code> command to the SMTP host and return
an OutputStream to which the data is to be written.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
<DD>JavaMail 1.4.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="finishData()"><!-- --></A><H3>
finishData</H3>
<PRE>
protected void <B>finishData</B>()
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>,
<A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Terminate the sent data.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
<DD>JavaMail 1.4.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="startTLS()"><!-- --></A><H3>
startTLS</H3>
<PRE>
protected void <B>startTLS</B>()
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Issue the <code>STARTTLS</code> command and switch the socket to
TLS mode if it succeeds.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
<DD>JavaMail 1.4.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="issueCommand(java.lang.String, int)"><!-- --></A><H3>
issueCommand</H3>
<PRE>
public void <B>issueCommand</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> cmd,
int expect)
throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
<DL>
<DD>Send the command to the server. If the expected response code
is not received, throw a MessagingException.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cmd</CODE> - the command to send<DD><CODE>expect</CODE> - the expected response code (-1 means don't care)
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="simpleCommand(java.lang.String)"><!-- --><
/A><
H3>
public int <
B>simpleCommand<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> cmd
)
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD>Send the command to the server and return the response
code
from the server.
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="simpleCommand(byte[])"><!-- --><
/A><
H3>
protected int <
B>simpleCommand<
/B>
(byte
[] cmd
)
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD>Send the command to the server and return the response
code
from the server.
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="sendCommand(java.lang.String)"><!-- --><
/A><
H3>
protected void <
B>sendCommand<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> cmd
)
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD>Sends command <
code>cmd<
/code> to the server terminating
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="readServerResponse()"><!-- --><
/A><
H3>
protected int <
B>readServerResponse<
/B>
()
throws <
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/PRE>
<
DD>Reads server reponse returning the <
code>returnCode<
/code>
as the number. Returns -1 on failure. Sets
<
DT><
B>Returns:<
/B><
DD>server response
code
<
DD><
CODE><
A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException<
/A><
/CODE><
DT><
B>Since:<
/B><
/DT>
<
A NAME="checkConnected()"><!-- --><
/A><
H3>
protected void <
B>checkConnected<
/B>
()<
/PRE>
<
DD>Check if we
're in the connected state. Don't bother checking
whether the server is still alive, that will be detected later.
<
DD><
CODE><
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException<
/A><
/CODE> - if not connected<
DT><
B>Since:<
/B><
/DT>
<
A NAME="supportsExtension(java.lang.String)"><!-- --><
/A><
H3>
public boolean <
B>supportsExtension<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> ext
)<
/PRE>
<
DD>Return true if the SMTP server supports the specified service
extension. Extensions are reported as results of the EHLO
command when connecting to the server. See
<
A HREF="http://www.ietf.org/rfc/rfc1869.txt">RFC
1869<
/A>
and other RFCs that define specific extensions.
<
DT><
B>Parameters:<
/B><
DD><
CODE>ext<
/CODE> - the service extension
name
<
DT><
B>Returns:<
/B><
DD>true if the extension is supported<
DT><
B>Since:<
/B><
/DT>
<
A NAME="getExtensionParameter(java.lang.String)"><!-- --><
/A><
H3>
getExtensionParameter<
/H3>
public <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> <
B>getExtensionParameter<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> ext
)<
/PRE>
<
DD>Return the parameter the server provided
for the specified
service extension, or null if the extension isn't supported.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ext</CODE> - the service extension name
<DT><B>Returns:</B><DD>the extension parameter<DT><B>Since:</B></DT>
<DD>JavaMail 1.3.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="supportsAuthentication(java.lang.String)"><!-- --></A><H3>
supportsAuthentication</H3>
<PRE>
protected boolean <B>supportsAuthentication</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> auth)</PRE>
<DL>
<DD>Does the server we're connected to support the specified
authentication mechanism? Uses the extension information
returned by the server from the EHLO command.
<
DT><
B>Parameters:<
/B><
DD><
CODE>auth<
/CODE> - the authentication mechanism
<
DT><
B>Returns:<
/B><
DD>true if the authentication mechanism is supported<
DT><
B>Since:<
/B><
/DT>
<
A NAME="xtext(java.lang.String)"><!-- --><
/A><
H3>
protected static <
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> <
B>xtext<
/B>
(<
A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String<
/A> s
)<
/PRE>
<
DD>Convert a string to RFC
1891 xtext format.
xtext = *( xchar / hexchar )
xchar = any ASCII CHAR between "!" (33) and "~" (126) inclusive,
except for "+" and "=".
; "hexchar"s are intended to encode octets that cannot appear
; as ASCII characters within an esmtp-value.
hexchar = ASCII "+" immediately followed by two upper case
hexadecimal digits
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<
A NAME="navbar_bottom"><!-- --><
/A>
<
A HREF="#skip-navbar_bottom" title="Skip navigation links"><
/A>
<
TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<
TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<
A NAME="navbar_bottom_firstrow"><!-- --><
/A>
<
TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<
TR ALIGN="center" VALIGN="top">
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../overview-summary.html"><
FONT CLASS="NavBarFont1"><
B>Overview<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="package-summary.html"><
FONT CLASS="NavBarFont1"><
B>Package<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <
FONT CLASS="NavBarFont1Rev"><
B>Class<
/B><
/FONT> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="class-use/SMTPTransport.html"><
FONT CLASS="NavBarFont1"><
B>Use<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="package-tree.html"><
FONT CLASS="NavBarFont1"><
B>Tree<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../deprecated-list.html"><
FONT CLASS="NavBarFont1"><
B>Deprecated<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../index-files/index-1.html"><
FONT CLASS="NavBarFont1"><
B>Index<
/B><
/FONT><
/A> <
/TD>
<
TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <
A HREF="../../../../help-doc.html"><
FONT CLASS="NavBarFont1"><
B>Help<
/B><
/FONT><
/A> <
/TD>
<
TD ALIGN="right" VALIGN="top" ROWSPAN=3><
EM>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../../com/sun/mail/smtp/SMTPSSLTransport.html" title="class in com.sun.mail.smtp"><
B>PREV CLASS<
/B><
/A>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../../index.html?com/sun/mail/smtp/SMTPTransport.html" target="_top"><
B>FRAMES<
/B><
/A>
<
A HREF="SMTPTransport.html" target="_top"><
B>NO FRAMES<
/B><
/A>
<
SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
<
A HREF="../../../../allclasses-noframe.html"><
B>All Classes<
/B><
/A>
<
TD VALIGN="top" CLASS="NavBarCell3"><
FONT SIZE="-2">
SUMMARY: NESTED | <
A HREF="#fields_inherited_from_class_javax.mail.Service">FIELD<
/A> | <
A HREF="#constructor_summary">CONSTR<
/A> | <
A HREF="#method_summary">METHOD<
/A><
/FONT><
/TD>
<
TD VALIGN="top" CLASS="NavBarCell3"><
FONT SIZE="-2">
DETAIL: FIELD | <
A HREF="#constructor_detail">CONSTR<
/A> | <
A HREF="#method_detail">METHOD<
/A><
/FONT><
/TD>
<
A NAME="skip-navbar_bottom"><
/A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
Copyright &#
169;
2009 <
a href="http://www.sun.com">Sun Microsystems, Inc.<
/a>. All Rights Reserved.