2006-09-11 04:19:00 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2001-07-11 16:11:47 +00:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
2005-04-29 18:58:16 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
2002-02-03 22:11:39 +00:00
|
|
|
<title>MimeMail Task</title>
|
2001-07-11 16:11:47 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h2><a name="mimemail">MimeMail</a></h2>
|
2002-02-05 09:32:48 +00:00
|
|
|
|
|
|
|
<h3><i>Deprecated</i></h3>
|
|
|
|
<p><i>This task has been deprecated. Use the <a href="../CoreTasks/mail.html">mail</a> task instead.</i></p>
|
|
|
|
|
2001-07-11 16:11:47 +00:00
|
|
|
<h3>Description</h3>
|
2002-02-05 09:32:48 +00:00
|
|
|
<p>Sends SMTP mail with MIME attachments.
|
|
|
|
<a href="http://java.sun.com/products/javamail/index.html">JavaMail</a>
|
2001-07-11 16:11:47 +00:00
|
|
|
and <a href="http://java.sun.com/products/javabeans/glasgow/jaf.html">Java
|
|
|
|
Activation Framework</a> are required for this task.</p>
|
|
|
|
<p>Multiple files can be attached using <a href="../CoreTypes/fileset.html">FileSets.</a></p>
|
|
|
|
<h3>Parameters</h3>
|
|
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<td valign="top"><b>Attribute</b></td>
|
|
|
|
<td valign="top"><b>Description</b></td>
|
|
|
|
<td align="center" valign="top"><b>Required</b></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">message</td>
|
|
|
|
<td valign="top">The message body</td>
|
|
|
|
<td valign="top" align="center" rowspan="2">No, but only one of of 'message' or
|
|
|
|
'messageFile' may be specified. If not specified, a fileset must be
|
|
|
|
provided.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">messageFile</td>
|
|
|
|
<td valign="top">A filename to read and used as the message body</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">messageMimeType</td>
|
|
|
|
<td valign="top">MIME type to use for 'message' or 'messageFile' when
|
|
|
|
attached.</td>
|
|
|
|
<td align="center" valign="top">No, defaults to "text/plain"</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">tolist</td>
|
|
|
|
<td valign="top">Comma-separated list of To: recipients</td>
|
|
|
|
<td valign="top" align="center" rowspan="3">Yes, at least one of 'tolist', 'cclist',
|
|
|
|
or 'bcclist' must be specified.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">cclist</td>
|
|
|
|
<td valign="top">Comma-separated list of CC: recipients</td>
|
|
|
|
<td valign="top" align="center"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">bcclist</td>
|
|
|
|
<td valign="top">Comma-separated list of BCC: recipients</td>
|
|
|
|
<td valign="top" align="center"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">mailhost</td>
|
|
|
|
<td valign="top">Host name of the mail server.</td>
|
|
|
|
<td valign="top" align="center">No, default to "localhost"</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">subject</td>
|
|
|
|
<td valign="top">Email subject line.</td>
|
|
|
|
<td valign="top" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">from</td>
|
|
|
|
<td valign="top">Email address of sender.</td>
|
|
|
|
<td valign="top" align="center">Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">failonerror</td>
|
|
|
|
<td valign="top">Stop the build process if an error occurs sending the
|
|
|
|
e-mail.</td>
|
|
|
|
<td valign="top" align="center">No, default to "true"</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h3>Examples</h3>
|
|
|
|
<p><b>Send a single HTML file as the body of a message</b></p>
|
2002-02-05 09:32:48 +00:00
|
|
|
<pre> <mimemail messageMimeType="text/html" messageFile="overview-summary.html"
|
2001-12-24 03:20:19 +00:00
|
|
|
tolist="you" subject="JUnit Test Results: ${TODAY}" from="me"/></pre>
|
2001-07-11 16:11:47 +00:00
|
|
|
<p><b>Sends all files in a directory as attachments</b></p>
|
2001-12-24 03:20:19 +00:00
|
|
|
<pre> <mimemail message="See attached files" tolist="you" subject="Attachments" from="me">
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="dist/*.*"/>
|
|
|
|
</fileset>
|
|
|
|
</mimemail>
|
2001-07-11 16:11:47 +00:00
|
|
|
</pre>
|
2005-03-07 18:11:14 +00:00
|
|
|
<hr><p align="center">Copyright © 2001-2002,2004-2005 The Apache Software Foundation. All rights
|
2001-07-11 16:11:47 +00:00
|
|
|
Reserved.</p>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|