📄 webmacrohtmlemail.html
字号:
</TABLE> <A NAME="methods_inherited_from_class_org.apache.turbine.util.mail.HtmlEmail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.util.mail.<A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html">HtmlEmail</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#embed(java.net.URL, java.lang.String)">embed</A>, <A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#getHtmlContent()">getHtmlContent</A>, <A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#setHtmlMsg(org.apache.ecs.Document)">setHtmlMsg</A>, <A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#setHtmlMsg(java.lang.String)">setHtmlMsg</A>, <A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#setMsg(java.lang.String)">setMsg</A>, <A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#setTextMsg(java.lang.String)">setTextMsg</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.turbine.util.mail.MultiPartEmail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.util.mail.<A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html">MultiPartEmail</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#attach(javax.activation.DataSource, java.lang.String, java.lang.String)">attach</A>, <A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#attach(javax.activation.DataSource, java.lang.String, java.lang.String, java.lang.String)">attach</A>, <A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#attach(org.apache.turbine.util.mail.EmailAttachment)">attach</A>, <A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#attach(java.net.URL, java.lang.String, java.lang.String)">attach</A>, <A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#attach(java.net.URL, java.lang.String, java.lang.String, java.lang.String)">attach</A>, <A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#init()">init</A>, <A HREF="../../../../../org/apache/turbine/util/mail/MultiPartEmail.html#initCriteria(org.apache.torque.util.Criteria)">initCriteria</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.turbine.util.mail.Email"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.util.mail.<A HREF="../../../../../org/apache/turbine/util/mail/Email.html">Email</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/mail/Email.html#addBcc(java.lang.String, java.lang.String)">addBcc</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#addCc(java.lang.String, java.lang.String)">addCc</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#addReplyTo(java.lang.String, java.lang.String)">addReplyTo</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#addTo(java.lang.String, java.lang.String)">addTo</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#initialize(org.apache.torque.util.Criteria)">initialize</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#setCharset(java.lang.String)">setCharset</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#setFrom(java.lang.String, java.lang.String)">setFrom</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#setSentDate(java.util.Date)">setSentDate</A>, <A HREF="../../../../../org/apache/turbine/util/mail/Email.html#setSubject(java.lang.String)">setSubject</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, 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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="WebMacroHtmlEmail()"><!-- --></A><H3>WebMacroHtmlEmail</H3><PRE>public <B>WebMacroHtmlEmail</B>() throws javax.mail.MessagingException</PRE><DL><DD><B>Deprecated.</B> <DD>Constructor, sets the RunData object.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - A Turbine RunData object.<DT><B>Throws:</B><DD><CODE>MessagingException.</CODE> - </DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setHtmlTemplate(java.lang.String)"><!-- --></A><H3>setHtmlTemplate</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/webmacro/WebMacroHtmlEmail.html">WebMacroHtmlEmail</A> <B>setHtmlTemplate</B>(java.lang.String template)</PRE><DL><DD><B>Deprecated.</B> <DD>Set the HTML template for the mail. This is the Webmacro template to execute for the HTML part. Path is relative to the WM templates directory.<DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - A String.<DT><B>Returns:</B><DD>A WebMacroHtmlEmail (self).</DL></DD></DL><HR><A NAME="setTextTemplate(java.lang.String)"><!-- --></A><H3>setTextTemplate</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/webmacro/WebMacroHtmlEmail.html">WebMacroHtmlEmail</A> <B>setTextTemplate</B>(java.lang.String template)</PRE><DL><DD><B>Deprecated.</B> <DD>Set the text template for the mail. This is the Webmacro template to execute for the text part. Path is relative to the WM templates directory<DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - A String.<DT><B>Returns:</B><DD>A WebMacroHtmlEmail (self).</DL></DD></DL><HR><A NAME="setContext(org.webmacro.servlet.WebContext)"><!-- --></A><H3>setContext</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/webmacro/WebMacroHtmlEmail.html">WebMacroHtmlEmail</A> <B>setContext</B>(org.webmacro.servlet.WebContext context)</PRE><DL><DD><B>Deprecated.</B> <DD>Set the context object that will be merged with the template.<DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - A WebMacro context object.<DT><B>Returns:</B><DD>A WebMacroEmail (self).</DL></DD></DL><HR><A NAME="getContext()"><!-- --></A><H3>getContext</H3><PRE>public org.webmacro.servlet.WebContext <B>getContext</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Get the context object that will be merged with the template.<DD><DL><DT><B>Returns:</B><DD>A WebContext (self).</DL></DD></DL><HR><A NAME="send()"><!-- --></A><H3>send</H3><PRE>public void <B>send</B>() throws javax.mail.MessagingException</PRE><DL><DD><B>Deprecated.</B> <DD>Actually send the mail.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#send()">send</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html">HtmlEmail</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>MessagingException.</CODE> - </DL></DD></DL><HR><A NAME="embed(java.lang.String, java.lang.String)"><!-- --></A><H3>embed</H3><PRE>public java.lang.String <B>embed</B>(java.lang.String surl, java.lang.String name) throws javax.mail.MessagingException</PRE><DL><DD><B>Deprecated.</B> <DD>Embed a file in the mail. The file can be referenced through its Content-ID. This function also registers the CID in an internal map, so the embedded file can be referenced more than once by using the getCid() function. This may be useful in a template. <p>Example of template: <code><pre width="80"> <html> <!-- $mail.embed("http://server/border.gif","border.gif"); --> <img src=$mail.getCid("border.gif")> <p>This is your content <img src=$mail.getCid("border.gif")> </html> </pre></code><DD><DL><DT><B>Parameters:</B><DD><CODE>surl</CODE> - A String.<DD><CODE>name</CODE> - A String.<DT><B>Returns:</B><DD>A String with the cid of the embedded file.<DT><B>Throws:</B><DD><CODE>MessagingException.</CODE> - <DT><B>See Also: </B><DD><A HREF="../../../../../org/apache/turbine/util/mail/HtmlEmail.html#embed(java.net.URL, java.lang.String)"><CODE>embed.</CODE></A></DL></DD></DL><HR><A NAME="getCid(java.lang.String)"><!-- --></A><H3>getCid</H3><PRE>public java.lang.String <B>getCid</B>(java.lang.String filename)</PRE><DL><DD><B>Deprecated.</B> <DD>Get the cid of an embedded file.<DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - A String.<DT><B>Returns:</B><DD>A String with the cid of the embedded file.<DT><B>See Also: </B><DD><A HREF="../../../../../org/apache/turbine/util/webmacro/WebMacroHtmlEmail.html#embed(java.lang.String, java.lang.String)"><CODE>embed.</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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/WebMacroHtmlEmail.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-all.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"> <A HREF="../../../../../org/apache/turbine/util/webmacro/WebMacroFormatter.WebMacroAlternator.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="WebMacroHtmlEmail.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_org.apache.turbine.util.mail.HtmlEmail">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -