Subversion Repositories javautils

Rev

Blame | Last modification | View Log | RSS feed

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_10) on Tue Nov 17 12:13:42 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. SMTPTransport (JavaMail API documentation)
  9. </TITLE>
  10.  
  11. <META NAME="date" CONTENT="2009-11-17">
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  14.  
  15. <SCRIPT type="text/javascript">
  16. function windowTitle()
  17. {
  18.     if (location.href.indexOf('is-external=true') == -1) {
  19.         parent.document.title="SMTPTransport (JavaMail API documentation)";
  20.     }
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. </NOSCRIPT>
  25.  
  26. </HEAD>
  27.  
  28. <BODY BGCOLOR="white" onload="windowTitle();">
  29. <HR>
  30.  
  31.  
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <A NAME="navbar_top"><!-- --></A>
  34. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  35. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  36. <TR>
  37. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  38. <A NAME="navbar_top_firstrow"><!-- --></A>
  39. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  40.   <TR ALIGN="center" VALIGN="top">
  41.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  42.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  43.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  44.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SMTPTransport.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  45.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  46.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  47.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  48.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  49.   </TR>
  50. </TABLE>
  51. </TD>
  52. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  53. </EM>
  54. </TD>
  55. </TR>
  56.  
  57. <TR>
  58. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  59. &nbsp;<A HREF="../../../../com/sun/mail/smtp/SMTPSSLTransport.html" title="class in com.sun.mail.smtp"><B>PREV CLASS</B></A>&nbsp;
  60. &nbsp;NEXT CLASS</FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../../../index.html?com/sun/mail/smtp/SMTPTransport.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="SMTPTransport.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  64. &nbsp;<SCRIPT type="text/javascript">
  65.   <!--
  66.   if(window==top) {
  67.     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  68.   }
  69.   //-->
  70. </SCRIPT>
  71. <NOSCRIPT>
  72.   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  73. </NOSCRIPT>
  74.  
  75.  
  76. </FONT></TD>
  77. </TR>
  78. <TR>
  79. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  80.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.mail.Service">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  81. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  82. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  83. </TR>
  84. </TABLE>
  85. <A NAME="skip-navbar_top"></A>
  86. <!-- ========= END OF TOP NAVBAR ========= -->
  87.  
  88. <HR>
  89. <!-- ======== START OF CLASS DATA ======== -->
  90. <H2>
  91. <FONT SIZE="-1">
  92. com.sun.mail.smtp</FONT>
  93. <BR>
  94. Class SMTPTransport</H2>
  95. <PRE>
  96. <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>
  97.   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../javax/mail/Service.html" title="class in javax.mail">javax.mail.Service</A>
  98.       <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">javax.mail.Transport</A>
  99.           <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.sun.mail.smtp.SMTPTransport</B>
  100. </PRE>
  101. <DL>
  102. <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>
  103. </DL>
  104. <HR>
  105. <DL>
  106. <DT><PRE>public class <B>SMTPTransport</B><DT>extends <A HREF="../../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></DL>
  107. </PRE>
  108.  
  109. <P>
  110. This class implements the Transport abstract class using SMTP for
  111.  message submission and transport. <p>
  112.  
  113.  See the <a href="package-summary.html">com.sun.mail.smtp</a> package
  114.  documentation for further information on the SMTP protocol provider. <p>
  115.  
  116.  This class includes many protected methods that allow a subclass to
  117.  extend this class and add support for non-standard SMTP commands.
  118.  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
  119.  used to send simple SMTP commands.  Other methods such as the
  120.  <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
  121.  insert new commands before or after the corresponding SMTP commands.
  122.  For example, a subclass could do this to send the XACT command
  123.  before sending the DATA command:
  124.  <pre>
  125.         protected OutputStream data() throws MessagingException {
  126.             if (supportsExtension("XACCOUNTING"))
  127.                 issueCommand("XACT", 25);
  128.             return super.data();
  129.         }
  130.  </pre>
  131. <P>
  132.  
  133. <P>
  134. <DL>
  135. <DT><B>See Also:</B><DD><A HREF="../../../../javax/mail/event/ConnectionEvent.html" title="class in javax.mail.event"><CODE>ConnectionEvent</CODE></A>,
  136. <A HREF="../../../../javax/mail/event/TransportEvent.html" title="class in javax.mail.event"><CODE>TransportEvent</CODE></A></DL>
  137. <HR>
  138.  
  139. <P>
  140. <!-- =========== FIELD SUMMARY =========== -->
  141.  
  142. <A NAME="field_summary"><!-- --></A>
  143. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  144. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  145. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  146. <B>Field Summary</B></FONT></TH>
  147. </TR>
  148. </TABLE>
  149. &nbsp;<A NAME="fields_inherited_from_class_javax.mail.Service"><!-- --></A>
  150. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  151. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  152. <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>
  153. </TR>
  154. <TR BGCOLOR="white" CLASS="TableRowColor">
  155. <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>
  156. </TR>
  157. </TABLE>
  158. &nbsp;
  159. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  160.  
  161. <A NAME="constructor_summary"><!-- --></A>
  162. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  163. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  164. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  165. <B>Constructor Summary</B></FONT></TH>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  169. <CODE>&nbsp;</CODE></FONT></TD>
  170. <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>&nbsp;session,
  171.               <A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A>&nbsp;urlname)</CODE>
  172.  
  173. <BR>
  174. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that takes a Session object and a URLName
  175.  that represents a specific SMTP server.</TD>
  176. </TR>
  177. <TR BGCOLOR="white" CLASS="TableRowColor">
  178. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  179. <CODE>protected </CODE></FONT></TD>
  180. <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>&nbsp;session,
  181.               <A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A>&nbsp;urlname,
  182.               <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>&nbsp;name,
  183.               boolean&nbsp;isSSL)</CODE>
  184.  
  185. <BR>
  186. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor used by this class and by SMTPSSLTransport subclass.</TD>
  187. </TR>
  188. </TABLE>
  189. &nbsp;
  190. <!-- ========== METHOD SUMMARY =========== -->
  191.  
  192. <A NAME="method_summary"><!-- --></A>
  193. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  194. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  195. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  196. <B>Method Summary</B></FONT></TH>
  197. </TR>
  198. <TR BGCOLOR="white" CLASS="TableRowColor">
  199. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  200. <CODE>protected &nbsp;void</CODE></FONT></TD>
  201. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#checkConnected()">checkConnected</A></B>()</CODE>
  202.  
  203. <BR>
  204. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if we're in the connected state.</TD>
  205. </TR>
  206. <TR BGCOLOR="white" CLASS="TableRowColor">
  207. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  208. <CODE>&nbsp;void</CODE></FONT></TD>
  209. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#close()">close</A></B>()</CODE>
  210.  
  211. <BR>
  212. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the Transport and terminate the connection to the server.</TD>
  213. </TR>
  214. <TR BGCOLOR="white" CLASS="TableRowColor">
  215. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  216. <CODE>&nbsp;void</CODE></FONT></TD>
  217. <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>&nbsp;socket)</CODE>
  218.  
  219. <BR>
  220. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start the SMTP protocol on the given socket, which was already
  221. connected by the caller.</TD>
  222. </TR>
  223. <TR BGCOLOR="white" CLASS="TableRowColor">
  224. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  225. <CODE>protected &nbsp;<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>
  226. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#data()">data</A></B>()</CODE>
  227.  
  228. <BR>
  229. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send the <code>DATA</code> command to the SMTP host and return
  230. an OutputStream to which the data is to be written.</TD>
  231. </TR>
  232. <TR BGCOLOR="white" CLASS="TableRowColor">
  233. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  234. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  235. <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>&nbsp;domain)</CODE>
  236.  
  237. <BR>
  238. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Issue the <code>EHLO</code> command.</TD>
  239. </TR>
  240. <TR BGCOLOR="white" CLASS="TableRowColor">
  241. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  242. <CODE>protected &nbsp;void</CODE></FONT></TD>
  243. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#finalize()">finalize</A></B>()</CODE>
  244.  
  245. <BR>
  246. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stop the event dispatcher thread so the queue can be garbage collected.</TD>
  247. </TR>
  248. <TR BGCOLOR="white" CLASS="TableRowColor">
  249. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  250. <CODE>protected &nbsp;void</CODE></FONT></TD>
  251. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#finishData()">finishData</A></B>()</CODE>
  252.  
  253. <BR>
  254. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Terminate the sent data.</TD>
  255. </TR>
  256. <TR BGCOLOR="white" CLASS="TableRowColor">
  257. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  258. <CODE>&nbsp;<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>
  259. <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>&nbsp;ext)</CODE>
  260.  
  261. <BR>
  262. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the parameter the server provided for the specified
  263. service extension, or null if the extension isn't supported.</TD>
  264. </TR>
  265. <TR BGCOLOR="white" CLASS="TableRowColor">
  266. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  267. <CODE>&nbsp;int</CODE></FONT></TD>
  268. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getLastReturnCode()">getLastReturnCode</A></B>()</CODE>
  269.  
  270. <BR>
  271. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the return code from the last response we got from the server.</TD>
  272. </TR>
  273. <TR BGCOLOR="white" CLASS="TableRowColor">
  274. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  275. <CODE>&nbsp;<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>
  276. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getLastServerResponse()">getLastServerResponse</A></B>()</CODE>
  277.  
  278. <BR>
  279. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the last response we got from the server.</TD>
  280. </TR>
  281. <TR BGCOLOR="white" CLASS="TableRowColor">
  282. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  283. <CODE>&nbsp;<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>
  284. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getLocalHost()">getLocalHost</A></B>()</CODE>
  285.  
  286. <BR>
  287. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the name of the local host, for use in the EHLO and HELO commands.</TD>
  288. </TR>
  289. <TR BGCOLOR="white" CLASS="TableRowColor">
  290. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  291. <CODE>&nbsp;boolean</CODE></FONT></TD>
  292. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getNoopStrict()">getNoopStrict</A></B>()</CODE>
  293.  
  294. <BR>
  295. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is the NOOP command required to return a response code
  296.  of 250 to indicate success?</TD>
  297. </TR>
  298. <TR BGCOLOR="white" CLASS="TableRowColor">
  299. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  300. <CODE>&nbsp;<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>
  301. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getNTLMDomain()">getNTLMDomain</A></B>()</CODE>
  302.  
  303. <BR>
  304. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the NTLM domain to be used for NTLM authentication.</TD>
  305. </TR>
  306. <TR BGCOLOR="white" CLASS="TableRowColor">
  307. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  308. <CODE>&nbsp;boolean</CODE></FONT></TD>
  309. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getReportSuccess()">getReportSuccess</A></B>()</CODE>
  310.  
  311. <BR>
  312. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should we report even successful sends by throwing an exception?
  313.  If so, a <code>SendFailedException</code> will always be thrown and
  314.  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
  315.  chain for each successful address, along with the usual
  316.  <A HREF="../../../../com/sun/mail/smtp/SMTPAddressFailedException.html" title="class in com.sun.mail.smtp"><CODE>SMTPAddressFailedException</CODE></A> for each unsuccessful address.</TD>
  317. </TR>
  318. <TR BGCOLOR="white" CLASS="TableRowColor">
  319. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  320. <CODE>&nbsp;boolean</CODE></FONT></TD>
  321. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getRequireStartTLS()">getRequireStartTLS</A></B>()</CODE>
  322.  
  323. <BR>
  324. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should we require the STARTTLS command to secure the connection?</TD>
  325. </TR>
  326. <TR BGCOLOR="white" CLASS="TableRowColor">
  327. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  328. <CODE>&nbsp;<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>
  329. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getSASLRealm()">getSASLRealm</A></B>()</CODE>
  330.  
  331. <BR>
  332. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the SASL realm to be used for DIGEST-MD5 authentication.</TD>
  333. </TR>
  334. <TR BGCOLOR="white" CLASS="TableRowColor">
  335. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  336. <CODE>&nbsp;boolean</CODE></FONT></TD>
  337. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getStartTLS()">getStartTLS</A></B>()</CODE>
  338.  
  339. <BR>
  340. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should we use the STARTTLS command to secure the connection
  341.  if the server supports it?</TD>
  342. </TR>
  343. <TR BGCOLOR="white" CLASS="TableRowColor">
  344. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  345. <CODE>&nbsp;boolean</CODE></FONT></TD>
  346. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#getUseRset()">getUseRset</A></B>()</CODE>
  347.  
  348. <BR>
  349. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should we use the RSET command instead of the NOOP command
  350.  in the @{link #isConnected isConnected} method?</TD>
  351. </TR>
  352. <TR BGCOLOR="white" CLASS="TableRowColor">
  353. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  354. <CODE>protected &nbsp;void</CODE></FONT></TD>
  355. <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>&nbsp;domain)</CODE>
  356.  
  357. <BR>
  358. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Issue the <code>HELO</code> command.</TD>
  359. </TR>
  360. <TR BGCOLOR="white" CLASS="TableRowColor">
  361. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  362. <CODE>&nbsp;boolean</CODE></FONT></TD>
  363. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#isConnected()">isConnected</A></B>()</CODE>
  364.  
  365. <BR>
  366. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether the transport is connected.</TD>
  367. </TR>
  368. <TR BGCOLOR="white" CLASS="TableRowColor">
  369. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  370. <CODE>&nbsp;void</CODE></FONT></TD>
  371. <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>&nbsp;cmd,
  372.              int&nbsp;expect)</CODE>
  373.  
  374. <BR>
  375. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send the command to the server.</TD>
  376. </TR>
  377. <TR BGCOLOR="white" CLASS="TableRowColor">
  378. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  379. <CODE>protected &nbsp;void</CODE></FONT></TD>
  380. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#mailFrom()">mailFrom</A></B>()</CODE>
  381.  
  382. <BR>
  383. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Issue the <code>MAIL FROM:</code> command to start sending a message.</TD>
  384. </TR>
  385. <TR BGCOLOR="white" CLASS="TableRowColor">
  386. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  387. <CODE>protected &nbsp;void</CODE></FONT></TD>
  388. <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&nbsp;type,
  389.                          <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;validSent,
  390.                          <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;validUnsent,
  391.                          <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;invalid,
  392.                          <A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message</A>&nbsp;msg)</CODE>
  393.  
  394. <BR>
  395. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notify all TransportListeners.</TD>
  396. </TR>
  397. <TR BGCOLOR="white" CLASS="TableRowColor">
  398. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  399. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  400. <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>&nbsp;host,
  401.                 int&nbsp;port,
  402.                 <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>&nbsp;user,
  403.                 <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>&nbsp;passwd)</CODE>
  404.  
  405. <BR>
  406. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs the actual protocol-specific connection attempt.</TD>
  407. </TR>
  408. <TR BGCOLOR="white" CLASS="TableRowColor">
  409. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  410. <CODE>protected &nbsp;void</CODE></FONT></TD>
  411. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#rcptTo()">rcptTo</A></B>()</CODE>
  412.  
  413. <BR>
  414. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends each address to the SMTP host using the <code>RCPT TO:</code>
  415.  command and copies the address either into
  416.  the validSentAddr or invalidAddr arrays.</TD>
  417. </TR>
  418. <TR BGCOLOR="white" CLASS="TableRowColor">
  419. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  420. <CODE>protected &nbsp;int</CODE></FONT></TD>
  421. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#readServerResponse()">readServerResponse</A></B>()</CODE>
  422.  
  423. <BR>
  424. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads server reponse returning the <code>returnCode</code>
  425.  as the number.</TD>
  426. </TR>
  427. <TR BGCOLOR="white" CLASS="TableRowColor">
  428. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  429. <CODE>protected &nbsp;void</CODE></FONT></TD>
  430. <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>&nbsp;cmd)</CODE>
  431.  
  432. <BR>
  433. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends command <code>cmd</code> to the server terminating
  434.  it with <code>CRLF</code>.</TD>
  435. </TR>
  436. <TR BGCOLOR="white" CLASS="TableRowColor">
  437. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  438. <CODE>&nbsp;void</CODE></FONT></TD>
  439. <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>&nbsp;message,
  440.             <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;addresses)</CODE>
  441.  
  442. <BR>
  443. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send the Message to the specified list of addresses.</TD>
  444. </TR>
  445. <TR BGCOLOR="white" CLASS="TableRowColor">
  446. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  447. <CODE>&nbsp;void</CODE></FONT></TD>
  448. <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>&nbsp;localhost)</CODE>
  449.  
  450. <BR>
  451. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the name of the local host, for use in the EHLO and HELO commands.</TD>
  452. </TR>
  453. <TR BGCOLOR="white" CLASS="TableRowColor">
  454. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  455. <CODE>&nbsp;void</CODE></FONT></TD>
  456. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setNoopStrict(boolean)">setNoopStrict</A></B>(boolean&nbsp;noopStrict)</CODE>
  457.  
  458. <BR>
  459. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set whether the NOOP command is required to return a response code
  460.  of 250 to indicate success.</TD>
  461. </TR>
  462. <TR BGCOLOR="white" CLASS="TableRowColor">
  463. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  464. <CODE>&nbsp;void</CODE></FONT></TD>
  465. <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>&nbsp;ntlmDomain)</CODE>
  466.  
  467. <BR>
  468. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the NTLM domain to be used for NTLM authentication.</TD>
  469. </TR>
  470. <TR BGCOLOR="white" CLASS="TableRowColor">
  471. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  472. <CODE>&nbsp;void</CODE></FONT></TD>
  473. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setReportSuccess(boolean)">setReportSuccess</A></B>(boolean&nbsp;reportSuccess)</CODE>
  474.  
  475. <BR>
  476. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set whether successful sends should be reported by throwing
  477.  an exception.</TD>
  478. </TR>
  479. <TR BGCOLOR="white" CLASS="TableRowColor">
  480. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  481. <CODE>&nbsp;void</CODE></FONT></TD>
  482. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setRequireStartTLS(boolean)">setRequireStartTLS</A></B>(boolean&nbsp;requireStartTLS)</CODE>
  483.  
  484. <BR>
  485. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set whether the STARTTLS command should be required.</TD>
  486. </TR>
  487. <TR BGCOLOR="white" CLASS="TableRowColor">
  488. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  489. <CODE>&nbsp;void</CODE></FONT></TD>
  490. <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>&nbsp;saslRealm)</CODE>
  491.  
  492. <BR>
  493. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the SASL realm to be used for DIGEST-MD5 authentication.</TD>
  494. </TR>
  495. <TR BGCOLOR="white" CLASS="TableRowColor">
  496. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  497. <CODE>&nbsp;void</CODE></FONT></TD>
  498. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setStartTLS(boolean)">setStartTLS</A></B>(boolean&nbsp;useStartTLS)</CODE>
  499.  
  500. <BR>
  501. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set whether the STARTTLS command should be used.</TD>
  502. </TR>
  503. <TR BGCOLOR="white" CLASS="TableRowColor">
  504. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  505. <CODE>&nbsp;void</CODE></FONT></TD>
  506. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#setUseRset(boolean)">setUseRset</A></B>(boolean&nbsp;useRset)</CODE>
  507.  
  508. <BR>
  509. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set whether the RSET command should be used instead of the
  510.  NOOP command in the @{link #isConnected isConnected} method.</TD>
  511. </TR>
  512. <TR BGCOLOR="white" CLASS="TableRowColor">
  513. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  514. <CODE>protected &nbsp;int</CODE></FONT></TD>
  515. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#simpleCommand(byte[])">simpleCommand</A></B>(byte[]&nbsp;cmd)</CODE>
  516.  
  517. <BR>
  518. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send the command to the server and return the response code
  519.  from the server.</TD>
  520. </TR>
  521. <TR BGCOLOR="white" CLASS="TableRowColor">
  522. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  523. <CODE>&nbsp;int</CODE></FONT></TD>
  524. <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>&nbsp;cmd)</CODE>
  525.  
  526. <BR>
  527. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send the command to the server and return the response code
  528.  from the server.</TD>
  529. </TR>
  530. <TR BGCOLOR="white" CLASS="TableRowColor">
  531. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  532. <CODE>protected &nbsp;void</CODE></FONT></TD>
  533. <TD><CODE><B><A HREF="../../../../com/sun/mail/smtp/SMTPTransport.html#startTLS()">startTLS</A></B>()</CODE>
  534.  
  535. <BR>
  536. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Issue the <code>STARTTLS</code> command and switch the socket to
  537.  TLS mode if it succeeds.</TD>
  538. </TR>
  539. <TR BGCOLOR="white" CLASS="TableRowColor">
  540. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  541. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  542. <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>&nbsp;auth)</CODE>
  543.  
  544. <BR>
  545. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does the server we're connected to support the specified
  546. authentication mechanism?  Uses the extension information
  547. returned by the server from the EHLO command.</TD>
  548. </TR>
  549. <TR BGCOLOR="white" CLASS="TableRowColor">
  550. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  551. <CODE>&nbsp;boolean</CODE></FONT></TD>
  552. <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>&nbsp;ext)</CODE>
  553.  
  554. <BR>
  555. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the SMTP server supports the specified service
  556. extension.</TD>
  557. </TR>
  558. <TR BGCOLOR="white" CLASS="TableRowColor">
  559. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  560. <CODE>protected static&nbsp;<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>
  561. <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>&nbsp;s)</CODE>
  562.  
  563. <BR>
  564. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a string to RFC 1891 xtext format.</TD>
  565. </TR>
  566. </TABLE>
  567. &nbsp;<A NAME="methods_inherited_from_class_javax.mail.Transport"><!-- --></A>
  568. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  569. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  570. <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>
  571. </TR>
  572. <TR BGCOLOR="white" CLASS="TableRowColor">
  573. <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>
  574. </TR>
  575. </TABLE>
  576. &nbsp;<A NAME="methods_inherited_from_class_javax.mail.Service"><!-- --></A>
  577. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  578. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  579. <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>
  580. </TR>
  581. <TR BGCOLOR="white" CLASS="TableRowColor">
  582. <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>
  583. </TR>
  584. </TABLE>
  585. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  586. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  587. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  588. <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>
  589. </TR>
  590. <TR BGCOLOR="white" CLASS="TableRowColor">
  591. <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>
  592. </TR>
  593. </TABLE>
  594. &nbsp;
  595. <P>
  596.  
  597. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  598.  
  599. <A NAME="constructor_detail"><!-- --></A>
  600. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  601. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  602. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  603. <B>Constructor Detail</B></FONT></TH>
  604. </TR>
  605. </TABLE>
  606.  
  607. <A NAME="SMTPTransport(javax.mail.Session, javax.mail.URLName)"><!-- --></A><H3>
  608. SMTPTransport</H3>
  609. <PRE>
  610. public <B>SMTPTransport</B>(<A HREF="../../../../javax/mail/Session.html" title="class in javax.mail">Session</A>&nbsp;session,
  611.                     <A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A>&nbsp;urlname)</PRE>
  612. <DL>
  613. <DD>Constructor that takes a Session object and a URLName
  614. that represents a specific SMTP server.
  615. <P>
  616. </DL>
  617. <HR>
  618.  
  619. <A NAME="SMTPTransport(javax.mail.Session, javax.mail.URLName, java.lang.String, boolean)"><!-- --></A><H3>
  620. SMTPTransport</H3>
  621. <PRE>
  622. protected <B>SMTPTransport</B>(<A HREF="../../../../javax/mail/Session.html" title="class in javax.mail">Session</A>&nbsp;session,
  623.                        <A HREF="../../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A>&nbsp;urlname,
  624.                        <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>&nbsp;name,
  625.                        boolean&nbsp;isSSL)</PRE>
  626. <DL>
  627. <DD>Constructor used by this class and by SMTPSSLTransport subclass.
  628. <P>
  629. </DL>
  630.  
  631. <!-- ============ METHOD DETAIL ========== -->
  632.  
  633. <A NAME="method_detail"><!-- --></A>
  634. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  635. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  636. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  637. <B>Method Detail</B></FONT></TH>
  638. </TR>
  639. </TABLE>
  640.  
  641. <A NAME="getLocalHost()"><!-- --></A><H3>
  642. getLocalHost</H3>
  643. <PRE>
  644. 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>
  645. <DL>
  646. <DD>Get the name of the local host, for use in the EHLO and HELO commands.
  647. The property mail.smtp.localhost overrides mail.smtp.localaddress,
  648. which overrides what InetAddress would tell us.
  649. <P>
  650. <DD><DL>
  651. </DL>
  652. </DD>
  653. </DL>
  654. <HR>
  655.  
  656. <A NAME="setLocalHost(java.lang.String)"><!-- --></A><H3>
  657. setLocalHost</H3>
  658. <PRE>
  659. 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>&nbsp;localhost)</PRE>
  660. <DL>
  661. <DD>Set the name of the local host, for use in the EHLO and HELO commands.
  662. <P>
  663. <DD><DL>
  664. <DT><B>Since:</B></DT>
  665.  <DD>JavaMail 1.3.1</DD>
  666. </DL>
  667. </DD>
  668. </DL>
  669. <HR>
  670.  
  671. <A NAME="connect(java.net.Socket)"><!-- --></A><H3>
  672. connect</H3>
  673. <PRE>
  674. 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>&nbsp;socket)
  675.             throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  676. <DL>
  677. <DD>Start the SMTP protocol on the given socket, which was already
  678. connected by the caller.  Useful for implementing the SMTP ATRN
  679. command (RFC 2645) where an existing connection is used when
  680. the server reverses roles and becomes the client.
  681. <P>
  682. <DD><DL>
  683.  
  684. <DT><B>Throws:</B>
  685. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  686.  <DD>JavaMail 1.3.3</DD>
  687. </DL>
  688. </DD>
  689. </DL>
  690. <HR>
  691.  
  692. <A NAME="getSASLRealm()"><!-- --></A><H3>
  693. getSASLRealm</H3>
  694. <PRE>
  695. 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>
  696. <DL>
  697. <DD>Gets the SASL realm to be used for DIGEST-MD5 authentication.
  698. <P>
  699. <DD><DL>
  700.  
  701. <DT><B>Returns:</B><DD>the name of the realm to use for SASL authentication.<DT><B>Since:</B></DT>
  702.  <DD>JavaMail 1.3.1</DD>
  703. </DL>
  704. </DD>
  705. </DL>
  706. <HR>
  707.  
  708. <A NAME="setSASLRealm(java.lang.String)"><!-- --></A><H3>
  709. setSASLRealm</H3>
  710. <PRE>
  711. 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>&nbsp;saslRealm)</PRE>
  712. <DL>
  713. <DD>Sets the SASL realm to be used for DIGEST-MD5 authentication.
  714. <P>
  715. <DD><DL>
  716. <DT><B>Parameters:</B><DD><CODE>saslRealm</CODE> - the name of the realm to use for
  717.                                SASL authentication.<DT><B>Since:</B></DT>
  718.  <DD>JavaMail 1.3.1</DD>
  719. </DL>
  720. </DD>
  721. </DL>
  722. <HR>
  723.  
  724. <A NAME="getNTLMDomain()"><!-- --></A><H3>
  725. getNTLMDomain</H3>
  726. <PRE>
  727. 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>
  728. <DL>
  729. <DD>Gets the NTLM domain to be used for NTLM authentication.
  730. <P>
  731. <DD><DL>
  732.  
  733. <DT><B>Returns:</B><DD>the name of the domain to use for NTLM authentication.<DT><B>Since:</B></DT>
  734.  <DD>JavaMail 1.4.3</DD>
  735. </DL>
  736. </DD>
  737. </DL>
  738. <HR>
  739.  
  740. <A NAME="setNTLMDomain(java.lang.String)"><!-- --></A><H3>
  741. setNTLMDomain</H3>
  742. <PRE>
  743. 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>&nbsp;ntlmDomain)</PRE>
  744. <DL>
  745. <DD>Sets the NTLM domain to be used for NTLM authentication.
  746. <P>
  747. <DD><DL>
  748. <DT><B>Parameters:</B><DD><CODE>ntlmDomain</CODE> - the name of the domain to use for
  749.                                NTLM authentication.<DT><B>Since:</B></DT>
  750.  <DD>JavaMail 1.4.3</DD>
  751. </DL>
  752. </DD>
  753. </DL>
  754. <HR>
  755.  
  756. <A NAME="getReportSuccess()"><!-- --></A><H3>
  757. getReportSuccess</H3>
  758. <PRE>
  759. public boolean <B>getReportSuccess</B>()</PRE>
  760. <DL>
  761. <DD>Should we report even successful sends by throwing an exception?
  762. If so, a <code>SendFailedException</code> will always be thrown and
  763. 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
  764. chain for each successful address, along with the usual
  765. <A HREF="../../../../com/sun/mail/smtp/SMTPAddressFailedException.html" title="class in com.sun.mail.smtp"><CODE>SMTPAddressFailedException</CODE></A> for each unsuccessful address.
  766. <P>
  767. <DD><DL>
  768.  
  769. <DT><B>Returns:</B><DD>true if an exception will be thrown on successful sends.<DT><B>Since:</B></DT>
  770.  <DD>JavaMail 1.3.2</DD>
  771. </DL>
  772. </DD>
  773. </DL>
  774. <HR>
  775.  
  776. <A NAME="setReportSuccess(boolean)"><!-- --></A><H3>
  777. setReportSuccess</H3>
  778. <PRE>
  779. public void <B>setReportSuccess</B>(boolean&nbsp;reportSuccess)</PRE>
  780. <DL>
  781. <DD>Set whether successful sends should be reported by throwing
  782. an exception.
  783. <P>
  784. <DD><DL>
  785. <DT><B>Parameters:</B><DD><CODE>reportSuccess</CODE> - should we throw an exception on success?<DT><B>Since:</B></DT>
  786.  <DD>JavaMail 1.3.2</DD>
  787. </DL>
  788. </DD>
  789. </DL>
  790. <HR>
  791.  
  792. <A NAME="getStartTLS()"><!-- --></A><H3>
  793. getStartTLS</H3>
  794. <PRE>
  795. public boolean <B>getStartTLS</B>()</PRE>
  796. <DL>
  797. <DD>Should we use the STARTTLS command to secure the connection
  798. if the server supports it?
  799. <P>
  800. <DD><DL>
  801.  
  802. <DT><B>Returns:</B><DD>true if the STARTTLS command will be used<DT><B>Since:</B></DT>
  803.  <DD>JavaMail 1.3.2</DD>
  804. </DL>
  805. </DD>
  806. </DL>
  807. <HR>
  808.  
  809. <A NAME="setStartTLS(boolean)"><!-- --></A><H3>
  810. setStartTLS</H3>
  811. <PRE>
  812. public void <B>setStartTLS</B>(boolean&nbsp;useStartTLS)</PRE>
  813. <DL>
  814. <DD>Set whether the STARTTLS command should be used.
  815. <P>
  816. <DD><DL>
  817. <DT><B>Parameters:</B><DD><CODE>useStartTLS</CODE> - should we use the STARTTLS command?<DT><B>Since:</B></DT>
  818.  <DD>JavaMail 1.3.2</DD>
  819. </DL>
  820. </DD>
  821. </DL>
  822. <HR>
  823.  
  824. <A NAME="getRequireStartTLS()"><!-- --></A><H3>
  825. getRequireStartTLS</H3>
  826. <PRE>
  827. public boolean <B>getRequireStartTLS</B>()</PRE>
  828. <DL>
  829. <DD>Should we require the STARTTLS command to secure the connection?
  830. <P>
  831. <DD><DL>
  832.  
  833. <DT><B>Returns:</B><DD>true if the STARTTLS command will be required<DT><B>Since:</B></DT>
  834.  <DD>JavaMail 1.4.2</DD>
  835. </DL>
  836. </DD>
  837. </DL>
  838. <HR>
  839.  
  840. <A NAME="setRequireStartTLS(boolean)"><!-- --></A><H3>
  841. setRequireStartTLS</H3>
  842. <PRE>
  843. public void <B>setRequireStartTLS</B>(boolean&nbsp;requireStartTLS)</PRE>
  844. <DL>
  845. <DD>Set whether the STARTTLS command should be required.
  846. <P>
  847. <DD><DL>
  848. <DT><B>Parameters:</B><DD><CODE>requireStartTLS</CODE> - should we require the STARTTLS command?<DT><B>Since:</B></DT>
  849.  <DD>JavaMail 1.4.2</DD>
  850. </DL>
  851. </DD>
  852. </DL>
  853. <HR>
  854.  
  855. <A NAME="getUseRset()"><!-- --></A><H3>
  856. getUseRset</H3>
  857. <PRE>
  858. public boolean <B>getUseRset</B>()</PRE>
  859. <DL>
  860. <DD>Should we use the RSET command instead of the NOOP command
  861. in the @{link #isConnected isConnected} method?
  862. <P>
  863. <DD><DL>
  864.  
  865. <DT><B>Returns:</B><DD>true if RSET will be used<DT><B>Since:</B></DT>
  866.  <DD>JavaMail 1.4</DD>
  867. </DL>
  868. </DD>
  869. </DL>
  870. <HR>
  871.  
  872. <A NAME="setUseRset(boolean)"><!-- --></A><H3>
  873. setUseRset</H3>
  874. <PRE>
  875. public void <B>setUseRset</B>(boolean&nbsp;useRset)</PRE>
  876. <DL>
  877. <DD>Set whether the RSET command should be used instead of the
  878. NOOP command in the @{link #isConnected isConnected} method.
  879. <P>
  880. <DD><DL>
  881. <DT><B>Parameters:</B><DD><CODE>useRset</CODE> - should we use the RSET command?<DT><B>Since:</B></DT>
  882.  <DD>JavaMail 1.4</DD>
  883. </DL>
  884. </DD>
  885. </DL>
  886. <HR>
  887.  
  888. <A NAME="getNoopStrict()"><!-- --></A><H3>
  889. getNoopStrict</H3>
  890. <PRE>
  891. public boolean <B>getNoopStrict</B>()</PRE>
  892. <DL>
  893. <DD>Is the NOOP command required to return a response code
  894. of 250 to indicate success?
  895. <P>
  896. <DD><DL>
  897.  
  898. <DT><B>Returns:</B><DD>true if NOOP must return 250<DT><B>Since:</B></DT>
  899.  <DD>JavaMail 1.4.3</DD>
  900. </DL>
  901. </DD>
  902. </DL>
  903. <HR>
  904.  
  905. <A NAME="setNoopStrict(boolean)"><!-- --></A><H3>
  906. setNoopStrict</H3>
  907. <PRE>
  908. public void <B>setNoopStrict</B>(boolean&nbsp;noopStrict)</PRE>
  909. <DL>
  910. <DD>Set whether the NOOP command is required to return a response code
  911. of 250 to indicate success.
  912. <P>
  913. <DD><DL>
  914. <DT><B>Parameters:</B><DD><CODE>noopStrict</CODE> - is NOOP required to return 250?<DT><B>Since:</B></DT>
  915.  <DD>JavaMail 1.4.3</DD>
  916. </DL>
  917. </DD>
  918. </DL>
  919. <HR>
  920.  
  921. <A NAME="getLastServerResponse()"><!-- --></A><H3>
  922. getLastServerResponse</H3>
  923. <PRE>
  924. 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>
  925. <DL>
  926. <DD>Return the last response we got from the server.
  927. A failed send is often followed by an RSET command,
  928. but the response from the RSET command is not saved.
  929. Instead, this returns the response from the command
  930. before the RSET command.
  931. <P>
  932. <DD><DL>
  933.  
  934. <DT><B>Returns:</B><DD>last response from server<DT><B>Since:</B></DT>
  935.  <DD>JavaMail 1.3.2</DD>
  936. </DL>
  937. </DD>
  938. </DL>
  939. <HR>
  940.  
  941. <A NAME="getLastReturnCode()"><!-- --></A><H3>
  942. getLastReturnCode</H3>
  943. <PRE>
  944. public int <B>getLastReturnCode</B>()</PRE>
  945. <DL>
  946. <DD>Return the return code from the last response we got from the server.
  947. <P>
  948. <DD><DL>
  949.  
  950. <DT><B>Returns:</B><DD>return code from last response from server<DT><B>Since:</B></DT>
  951.  <DD>JavaMail 1.4.1</DD>
  952. </DL>
  953. </DD>
  954. </DL>
  955. <HR>
  956.  
  957. <A NAME="protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
  958. protocolConnect</H3>
  959. <PRE>
  960. 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>&nbsp;host,
  961.                                  int&nbsp;port,
  962.                                  <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>&nbsp;user,
  963.                                  <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>&nbsp;passwd)
  964.                           throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  965. <DL>
  966. <DD>Performs the actual protocol-specific connection attempt.
  967. Will attempt to connect to "localhost" if the host was null. <p>
  968.  
  969. Unless mail.smtp.ehlo is set to false, we'll try to identify
  970.  ourselves using the ESMTP command EHLO.
  971.  
  972.  If mail.smtp.auth is set to true, we insist on having a username
  973.  and password, and will try to authenticate ourselves if the server
  974.  supports the AUTH extension (RFC 2554).
  975. <P>
  976. <DD><DL>
  977. <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>
  978. </DD>
  979. <DD><DL>
  980. <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
  981. <DT><B>Returns:</B><DD>true if connection successful, false if authentication failed
  982. <DT><B>Throws:</B>
  983. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE> - for non-authentication failures</DL>
  984. </DD>
  985. </DL>
  986. <HR>
  987.  
  988. <A NAME="sendMessage(javax.mail.Message, javax.mail.Address[])"><!-- --></A><H3>
  989. sendMessage</H3>
  990. <PRE>
  991. public void <B>sendMessage</B>(<A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message</A>&nbsp;message,
  992.                        <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;addresses)
  993.                 throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A>,
  994.                        <A HREF="../../../../javax/mail/SendFailedException.html" title="class in javax.mail">SendFailedException</A></PRE>
  995. <DL>
  996. <DD>Send the Message to the specified list of addresses.<p>
  997.  
  998. If all the <code>addresses</code> succeed the SMTP check
  999. using the <code>RCPT TO:</code> command, we attempt to send the message.
  1000. A TransportEvent of type MESSAGE_DELIVERED is fired indicating the
  1001. successful submission of a message to the SMTP host.<p>
  1002.  
  1003. If some of the <code>addresses</code> fail the SMTP check,
  1004. and the <code>mail.stmp.sendpartial</code> property is not set,
  1005. sending is aborted. The TransportEvent of type MESSAGE_NOT_DELIVERED
  1006. is fired containing the valid and invalid addresses. The
  1007. SendFailedException is also thrown. <p>
  1008.  
  1009. If some of the <code>addresses</code> fail the SMTP check,
  1010. and the <code>mail.stmp.sendpartial</code> property is set to true,
  1011. the message is sent. The TransportEvent of type
  1012. MESSAGE_PARTIALLY_DELIVERED
  1013. is fired containing the valid and invalid addresses. The
  1014. SMTPSendFailedException is also thrown. <p>
  1015.  
  1016. MessagingException is thrown if the message can't write out
  1017.  an RFC822-compliant stream using its <code>writeTo</code> method. <p>
  1018. <P>
  1019. <DD><DL>
  1020. <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>
  1021. </DD>
  1022. <DD><DL>
  1023. <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
  1024. <DT><B>Throws:</B>
  1025. <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
  1026.                         an SMTP command error
  1027. <DD><CODE><A HREF="../../../../javax/mail/SendFailedException.html" title="class in javax.mail">SendFailedException</A></CODE> - if the send failed because of
  1028.                         invalid addresses.
  1029. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE> - if the connection is dead
  1030.                   or not in the connected state or if the message is
  1031.                   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>
  1032. </DD>
  1033. </DL>
  1034. <HR>
  1035.  
  1036. <A NAME="close()"><!-- --></A><H3>
  1037. close</H3>
  1038. <PRE>
  1039. public void <B>close</B>()
  1040.            throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1041. <DL>
  1042. <DD>Close the Transport and terminate the connection to the server.
  1043. <P>
  1044. <DD><DL>
  1045. <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>
  1046. </DD>
  1047. <DD><DL>
  1048.  
  1049. <DT><B>Throws:</B>
  1050. <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>
  1051. </DD>
  1052. </DL>
  1053. <HR>
  1054.  
  1055. <A NAME="isConnected()"><!-- --></A><H3>
  1056. isConnected</H3>
  1057. <PRE>
  1058. public boolean <B>isConnected</B>()</PRE>
  1059. <DL>
  1060. <DD>Check whether the transport is connected. Override superclass
  1061.  method, to actually ping our server connection.
  1062. <P>
  1063. <DD><DL>
  1064. <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>
  1065. </DD>
  1066. <DD><DL>
  1067.  
  1068. <DT><B>Returns:</B><DD>true if the service is connected, false if it is not connected</DL>
  1069. </DD>
  1070. </DL>
  1071. <HR>
  1072.  
  1073. <A NAME="notifyTransportListeners(int, javax.mail.Address[], javax.mail.Address[], javax.mail.Address[], javax.mail.Message)"><!-- --></A><H3>
  1074. notifyTransportListeners</H3>
  1075. <PRE>
  1076. protected void <B>notifyTransportListeners</B>(int&nbsp;type,
  1077.                                         <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;validSent,
  1078.                                         <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;validUnsent,
  1079.                                         <A HREF="../../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;invalid,
  1080.                                         <A HREF="../../../../javax/mail/Message.html" title="class in javax.mail">Message</A>&nbsp;msg)</PRE>
  1081. <DL>
  1082. <DD>Notify all TransportListeners.  Keep track of whether notification
  1083.  has been done so as to only notify once per send.
  1084. <P>
  1085. <DD><DL>
  1086. <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>
  1087. </DD>
  1088. <DD><DL>
  1089. <DT><B>Since:</B></DT>
  1090.   <DD>JavaMail 1.4.2</DD>
  1091. </DL>
  1092. </DD>
  1093. </DL>
  1094. <HR>
  1095.  
  1096. <A NAME="finalize()"><!-- --></A><H3>
  1097. finalize</H3>
  1098. <PRE>
  1099. protected void <B>finalize</B>()
  1100.                  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>
  1101. <DL>
  1102. <DD><B>Description copied from class: <CODE><A HREF="../../../../javax/mail/Service.html#finalize()">Service</A></CODE></B></DD>
  1103. <DD>Stop the event dispatcher thread so the queue can be garbage collected.
  1104. <P>
  1105. <DD><DL>
  1106. <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>
  1107. </DD>
  1108. <DD><DL>
  1109.  
  1110. <DT><B>Throws:</B>
  1111. <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>
  1112. </DD>
  1113. </DL>
  1114. <HR>
  1115.  
  1116. <A NAME="helo(java.lang.String)"><!-- --></A><H3>
  1117. helo</H3>
  1118. <PRE>
  1119. 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>&nbsp;domain)
  1120.              throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1121. <DL>
  1122. <DD>Issue the <code>HELO</code> command.
  1123. <P>
  1124. <DD><DL>
  1125. <DT><B>Parameters:</B><DD><CODE>domain</CODE> - our domain
  1126. <DT><B>Throws:</B>
  1127. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1128.   <DD>JavaMail 1.4.1</DD>
  1129. </DL>
  1130. </DD>
  1131. </DL>
  1132. <HR>
  1133.  
  1134. <A NAME="ehlo(java.lang.String)"><!-- --></A><H3>
  1135. ehlo</H3>
  1136. <PRE>
  1137. 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>&nbsp;domain)
  1138.                 throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1139. <DL>
  1140. <DD>Issue the <code>EHLO</code> command.
  1141.  Collect the returned list of service extensions.
  1142. <P>
  1143. <DD><DL>
  1144. <DT><B>Parameters:</B><DD><CODE>domain</CODE> - our domain
  1145. <DT><B>Returns:</B><DD>true if command succeeds
  1146. <DT><B>Throws:</B>
  1147. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1148.   <DD>JavaMail 1.4.1</DD>
  1149. </DL>
  1150. </DD>
  1151. </DL>
  1152. <HR>
  1153.  
  1154. <A NAME="mailFrom()"><!-- --></A><H3>
  1155. mailFrom</H3>
  1156. <PRE>
  1157. protected void <B>mailFrom</B>()
  1158.                  throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1159. <DL>
  1160. <DD>Issue the <code>MAIL FROM:</code> command to start sending a message. <p>
  1161.  
  1162.  Gets the sender's address in the following order:
  1163. <ol>
  1164. <li>SMTPMessage.getEnvelopeFrom()</li>
  1165. <li>mail.smtp.from property</li>
  1166. <li>From: header in the message</li>
  1167. <li>System username using the
  1168. InternetAddress.getLocalAddress() method</li>
  1169. </ol>
  1170. <P>
  1171. <DD><DL>
  1172.  
  1173. <DT><B>Throws:</B>
  1174. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1175.  <DD>JavaMail 1.4.1</DD>
  1176. </DL>
  1177. </DD>
  1178. </DL>
  1179. <HR>
  1180.  
  1181. <A NAME="rcptTo()"><!-- --></A><H3>
  1182. rcptTo</H3>
  1183. <PRE>
  1184. protected void <B>rcptTo</B>()
  1185.               throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1186. <DL>
  1187. <DD>Sends each address to the SMTP host using the <code>RCPT TO:</code>
  1188. command and copies the address either into
  1189. the validSentAddr or invalidAddr arrays.
  1190. Sets the <code>sendFailed</code>
  1191. flag to true if any addresses failed.
  1192. <P>
  1193. <DD><DL>
  1194.  
  1195. <DT><B>Throws:</B>
  1196. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1197.  <DD>JavaMail 1.4.1</DD>
  1198. </DL>
  1199. </DD>
  1200. </DL>
  1201. <HR>
  1202.  
  1203. <A NAME="data()"><!-- --></A><H3>
  1204. data</H3>
  1205. <PRE>
  1206. 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>()
  1207.                     throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1208. <DL>
  1209. <DD>Send the <code>DATA</code> command to the SMTP host and return
  1210. an OutputStream to which the data is to be written.
  1211. <P>
  1212. <DD><DL>
  1213.  
  1214. <DT><B>Throws:</B>
  1215. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1216.  <DD>JavaMail 1.4.1</DD>
  1217. </DL>
  1218. </DD>
  1219. </DL>
  1220. <HR>
  1221.  
  1222. <A NAME="finishData()"><!-- --></A><H3>
  1223. finishData</H3>
  1224. <PRE>
  1225. protected void <B>finishData</B>()
  1226.                   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>,
  1227.                          <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1228. <DL>
  1229. <DD>Terminate the sent data.
  1230. <P>
  1231. <DD><DL>
  1232.  
  1233. <DT><B>Throws:</B>
  1234. <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>
  1235. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1236.  <DD>JavaMail 1.4.1</DD>
  1237. </DL>
  1238. </DD>
  1239. </DL>
  1240. <HR>
  1241.  
  1242. <A NAME="startTLS()"><!-- --></A><H3>
  1243. startTLS</H3>
  1244. <PRE>
  1245. protected void <B>startTLS</B>()
  1246.                 throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1247. <DL>
  1248. <DD>Issue the <code>STARTTLS</code> command and switch the socket to
  1249. TLS mode if it succeeds.
  1250. <P>
  1251. <DD><DL>
  1252.  
  1253. <DT><B>Throws:</B>
  1254. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1255.  <DD>JavaMail 1.4.1</DD>
  1256. </DL>
  1257. </DD>
  1258. </DL>
  1259. <HR>
  1260.  
  1261. <A NAME="issueCommand(java.lang.String, int)"><!-- --></A><H3>
  1262. issueCommand</H3>
  1263. <PRE>
  1264. 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>&nbsp;cmd,
  1265.                         int&nbsp;expect)
  1266.                  throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1267. <DL>
  1268. <DD>Send the command to the server.  If the expected response code
  1269. is not received, throw a MessagingException.
  1270. <P>
  1271. <DD><DL>
  1272. <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)
  1273. <DT><B>Throws:</B>
  1274. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1275.   <DD>JavaMail 1.4.1</DD>
  1276. </DL>
  1277. </DD>
  1278. </DL>
  1279. <HR>
  1280.  
  1281. <A NAME="simpleCommand(java.lang.String)"><!-- --></A><H3>
  1282. simpleCommand</H3>
  1283. <PRE>
  1284. 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>&nbsp;cmd)
  1285.                   throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1286. <DL>
  1287. <DD>Send the command to the server and return the response code
  1288.  from the server.
  1289. <P>
  1290. <DD><DL>
  1291.  
  1292. <DT><B>Throws:</B>
  1293. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1294.   <DD>JavaMail 1.4.1</DD>
  1295. </DL>
  1296. </DD>
  1297. </DL>
  1298. <HR>
  1299.  
  1300. <A NAME="simpleCommand(byte[])"><!-- --></A><H3>
  1301. simpleCommand</H3>
  1302. <PRE>
  1303. protected int <B>simpleCommand</B>(byte[]&nbsp;cmd)
  1304.                      throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1305. <DL>
  1306. <DD>Send the command to the server and return the response code
  1307.  from the server.
  1308. <P>
  1309. <DD><DL>
  1310.  
  1311. <DT><B>Throws:</B>
  1312. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1313.   <DD>JavaMail 1.4.1</DD>
  1314. </DL>
  1315. </DD>
  1316. </DL>
  1317. <HR>
  1318.  
  1319. <A NAME="sendCommand(java.lang.String)"><!-- --></A><H3>
  1320. sendCommand</H3>
  1321. <PRE>
  1322. 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>&nbsp;cmd)
  1323.                     throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1324. <DL>
  1325. <DD>Sends command <code>cmd</code> to the server terminating
  1326.  it with <code>CRLF</code>.
  1327. <P>
  1328. <DD><DL>
  1329.  
  1330. <DT><B>Throws:</B>
  1331. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1332.   <DD>JavaMail 1.4.1</DD>
  1333. </DL>
  1334. </DD>
  1335. </DL>
  1336. <HR>
  1337.  
  1338. <A NAME="readServerResponse()"><!-- --></A><H3>
  1339. readServerResponse</H3>
  1340. <PRE>
  1341. protected int <B>readServerResponse</B>()
  1342.                           throws <A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE>
  1343. <DL>
  1344. <DD>Reads server reponse returning the <code>returnCode</code>
  1345.  as the number.  Returns -1 on failure. Sets
  1346.  <code>lastServerResponse</code> and <code>lastReturnCode</code>.
  1347. <P>
  1348. <DD><DL>
  1349.  
  1350. <DT><B>Returns:</B><DD>server response code
  1351. <DT><B>Throws:</B>
  1352. <DD><CODE><A HREF="../../../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>Since:</B></DT>
  1353.   <DD>JavaMail 1.4.1</DD>
  1354. </DL>
  1355. </DD>
  1356. </DL>
  1357. <HR>
  1358.  
  1359. <A NAME="checkConnected()"><!-- --></A><H3>
  1360. checkConnected</H3>
  1361. <PRE>
  1362. protected void <B>checkConnected</B>()</PRE>
  1363. <DL>
  1364. <DD>Check if we're in the connected state.  Don't bother checking
  1365.  whether the server is still alive, that will be detected later.
  1366. <P>
  1367. <DD><DL>
  1368.  
  1369. <DT><B>Throws:</B>
  1370. <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>
  1371.   <DD>JavaMail 1.4.1</DD>
  1372. </DL>
  1373. </DD>
  1374. </DL>
  1375. <HR>
  1376.  
  1377. <A NAME="supportsExtension(java.lang.String)"><!-- --></A><H3>
  1378. supportsExtension</H3>
  1379. <PRE>
  1380. 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>&nbsp;ext)</PRE>
  1381. <DL>
  1382. <DD>Return true if the SMTP server supports the specified service
  1383.  extension.  Extensions are reported as results of the EHLO
  1384.  command when connecting to the server. See
  1385.  <A HREF="http://www.ietf.org/rfc/rfc1869.txt">RFC 1869</A>
  1386.  and other RFCs that define specific extensions.
  1387. <P>
  1388. <DD><DL>
  1389. <DT><B>Parameters:</B><DD><CODE>ext</CODE> - the service extension name
  1390. <DT><B>Returns:</B><DD>true if the extension is supported<DT><B>Since:</B></DT>
  1391.   <DD>JavaMail 1.3.2</DD>
  1392. </DL>
  1393. </DD>
  1394. </DL>
  1395. <HR>
  1396.  
  1397. <A NAME="getExtensionParameter(java.lang.String)"><!-- --></A><H3>
  1398. getExtensionParameter</H3>
  1399. <PRE>
  1400. 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>&nbsp;ext)</PRE>
  1401. <DL>
  1402. <DD>Return the parameter the server provided for the specified
  1403.  service extension, or null if the extension isn't supported.
  1404. <P>
  1405. <DD><DL>
  1406. <DT><B>Parameters:</B><DD><CODE>ext</CODE> - the service extension name
  1407. <DT><B>Returns:</B><DD>the extension parameter<DT><B>Since:</B></DT>
  1408.  <DD>JavaMail 1.3.2</DD>
  1409. </DL>
  1410. </DD>
  1411. </DL>
  1412. <HR>
  1413.  
  1414. <A NAME="supportsAuthentication(java.lang.String)"><!-- --></A><H3>
  1415. supportsAuthentication</H3>
  1416. <PRE>
  1417. 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>&nbsp;auth)</PRE>
  1418. <DL>
  1419. <DD>Does the server we're connected to support the specified
  1420.  authentication mechanism?  Uses the extension information
  1421.  returned by the server from the EHLO command.
  1422. <P>
  1423. <DD><DL>
  1424. <DT><B>Parameters:</B><DD><CODE>auth</CODE> - the authentication mechanism
  1425. <DT><B>Returns:</B><DD>true if the authentication mechanism is supported<DT><B>Since:</B></DT>
  1426.   <DD>JavaMail 1.4.1</DD>
  1427. </DL>
  1428. </DD>
  1429. </DL>
  1430. <HR>
  1431.  
  1432. <A NAME="xtext(java.lang.String)"><!-- --></A><H3>
  1433. xtext</H3>
  1434. <PRE>
  1435. 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>&nbsp;s)</PRE>
  1436. <DL>
  1437. <DD>Convert a string to RFC 1891 xtext format.
  1438.  
  1439.  <p><pre>
  1440.      xtext = *( xchar / hexchar )
  1441.  
  1442.      xchar = any ASCII CHAR between "!" (33) and "~" (126) inclusive,
  1443.           except for "+" and "=".
  1444.  
  1445.  ; "hexchar"s are intended to encode octets that cannot appear
  1446.  ; as ASCII characters within an esmtp-value.
  1447.  
  1448.      hexchar = ASCII "+" immediately followed by two upper case
  1449.           hexadecimal digits
  1450.  </pre></p>
  1451. <P>
  1452. <DD><DL>
  1453. <DT><B>Since:</B></DT>
  1454.   <DD>JavaMail 1.4.1</DD>
  1455. </DL>
  1456. </DD>
  1457. </DL>
  1458. <!-- ========= END OF CLASS DATA ========= -->
  1459. <HR>
  1460.  
  1461.  
  1462. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1463. <A NAME="navbar_bottom"><!-- --></A>
  1464. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  1465. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  1466. <TR>
  1467. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  1468. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  1469. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  1470.   <TR ALIGN="center" VALIGN="top">
  1471.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  1472.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  1473.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  1474.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SMTPTransport.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  1475.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  1476.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  1477.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  1478.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  1479.   </TR>
  1480. </TABLE>
  1481. </TD>
  1482. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  1483. </EM>
  1484. </TD>
  1485. </TR>
  1486.  
  1487. <TR>
  1488. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  1489. &nbsp;<A HREF="../../../../com/sun/mail/smtp/SMTPSSLTransport.html" title="class in com.sun.mail.smtp"><B>PREV CLASS</B></A>&nbsp;
  1490. &nbsp;NEXT CLASS</FONT></TD>
  1491. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  1492.   <A HREF="../../../../index.html?com/sun/mail/smtp/SMTPTransport.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  1493. &nbsp;<A HREF="SMTPTransport.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  1494. &nbsp;<SCRIPT type="text/javascript">
  1495.   <!--
  1496.   if(window==top) {
  1497.     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  1498.   }
  1499.   //-->
  1500. </SCRIPT>
  1501. <NOSCRIPT>
  1502.   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  1503. </NOSCRIPT>
  1504.  
  1505.  
  1506. </FONT></TD>
  1507. </TR>
  1508. <TR>
  1509. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  1510.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.mail.Service">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  1511. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  1512. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  1513. </TR>
  1514. </TABLE>
  1515. <A NAME="skip-navbar_bottom"></A>
  1516. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1517.  
  1518. <HR>
  1519. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  1520. </BODY>
  1521. </HTML>
  1522.