?? jfmsmtp.html
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_01) on Wed Aug 25 15:10:20 CEST 2004 --><TITLE>JfmSMTP</TITLE><META NAME="keywords" CONTENT="org.jfreemail.smtp.JfmSMTP class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="JfmSMTP";}</SCRIPT></HEAD><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=""><TR><TD COLSPAN=3 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/JfmSMTP.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> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="JfmSMTP.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>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <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></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.jfreemail.smtp</FONT><BR>Class JfmSMTP</H2><PRE>java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jfreemail.smtp.JfmSMTP</B></PRE><HR><DL><DT>public class <B>JfmSMTP</B><DT>extends java.lang.Object</DL><P>Class for working with SMTP, sending E-mails.<P><P><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfreemail/smtp/JfmSMTP.html#JfmSMTP(java.net.InetAddress, int, int, java.lang.String, java.lang.String)">JfmSMTP</A></B>(java.net.InetAddress addr, int port, int auth_type, java.lang.String username, java.lang.String password)</CODE><BR> Constructor, needs immediate authentication, so we don't need to worry about connection later.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfreemail/smtp/JfmSMTP.html#JfmSMTP(java.lang.String, int, int, java.lang.String, java.lang.String)">JfmSMTP</A></B>(java.lang.String hostname, int port, int auth_type, java.lang.String username, java.lang.String password)</CODE><BR> Constructor, needs immediate authetication. </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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="../../../org/jfreemail/smtp/JfmSMTP.html#close()">close</A></B>()</CODE><BR> Method for closing connection with SMTP 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="../../../org/jfreemail/smtp/JfmSMTP.html#sendMail(org.jfreemail.core.JfmEmail)">sendMail</A></B>(<A HREF="../../../org/jfreemail/core/JfmEmail.html" title="class in org.jfreemail.core">JfmEmail</A> em)</CODE><BR> Method for sending E-mail.</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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JfmSMTP(java.lang.String, int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>JfmSMTP</H3><PRE>public <B>JfmSMTP</B>(java.lang.String hostname, int port, int auth_type, java.lang.String username, java.lang.String password) throws <A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A>, <A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></PRE><DL><DD>Constructor, needs immediate authetication. On successfully created object, we don't need to worry about connection with server.<P><DT><B>Parameters:</B><DD><CODE>hostname</CODE> - Hostname of SMTP server.<DD><CODE>port</CODE> - Port of SMTP server. Use 0 for default SMTP port (25).<DD><CODE>auth_type</CODE> - Authentication type. See JfmConsts for details.<DD><CODE>username</CODE> - Username for authentication.<DD><CODE>password</CODE> - Password for authentication.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A></CODE> - Thrown on communication error.<DD><CODE><A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></CODE> - Thrown on authentication error.</DL><HR><A NAME="JfmSMTP(java.net.InetAddress, int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>JfmSMTP</H3><PRE>public <B>JfmSMTP</B>(java.net.InetAddress addr, int port, int auth_type, java.lang.String username, java.lang.String password) throws <A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A>, <A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></PRE><DL><DD>Constructor, needs immediate authentication, so we don't need to worry about connection later.<P><DT><B>Parameters:</B><DD><CODE>addr</CODE> - IP address of SMTP server.<DD><CODE>port</CODE> - Port of SMTP server. Use 0 for default (25).<DD><CODE>auth_type</CODE> - Authentication type. See JfmConsts for details.<DD><CODE>username</CODE> - Username for authentication.<DD><CODE>password</CODE> - Password for authentication.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A></CODE> - Thrown on communication error.<DD><CODE><A HREF="../../../org/jfreemail/core/AuthException.html" title="class in org.jfreemail.core">AuthException</A></CODE> - Thrown on authentication error.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws <A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A></PRE><DL><DD>Method for closing connection with SMTP server. Use immediate before object destruction.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A></CODE> - Thrown on communication error.</DL></DD></DL><HR><A NAME="sendMail(org.jfreemail.core.JfmEmail)"><!-- --></A><H3>sendMail</H3><PRE>public void <B>sendMail</B>(<A HREF="../../../org/jfreemail/core/JfmEmail.html" title="class in org.jfreemail.core">JfmEmail</A> em) throws <A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A>, <A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></PRE><DL><DD>Method for sending E-mail.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>em</CODE> - E-mail to send.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfreemail/smtp/SMTPException.html" title="class in org.jfreemail.smtp">SMTPException</A></CODE> - Thrown on communication error:<DD><CODE><A HREF="../../../org/jfreemail/core/CoreException.html" title="class in org.jfreemail.core">CoreException</A></CODE> - Thrown on E-mail composing error.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= 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=""><TR><TD COLSPAN=3 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/JfmSMTP.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> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="JfmSMTP.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>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <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></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -