You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mail.html 2.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Apache Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="mail">Mail</a></h2>
  8. <h3>Description</h3>
  9. <p>A task to send SMTP email. Text and text files to include in the message
  10. body may be specified. To send binary attachments the optional
  11. <a href="../OptionalTasks/mimemail.html">MimeMail</a> task should be used instead</p>
  12. <h3>Parameters</h3>
  13. <table border="1" cellpadding="2" cellspacing="0">
  14. <tr>
  15. <td valign="top"><b>Attribute</b></td>
  16. <td valign="top"><b>Description</b></td>
  17. <td align="center" valign="top"><b>Required</b></td>
  18. </tr>
  19. <tr>
  20. <td valign="top">from</td>
  21. <td valign="top">Email address of sender.</td>
  22. <td align="center" valign="top">Yes</td>
  23. </tr>
  24. <tr>
  25. <td valign="top">tolist</td>
  26. <td valign="top">Comma-separated list of recipients.</td>
  27. <td align="center" valign="top">Yes</td>
  28. </tr>
  29. <tr>
  30. <td valign="top">message</td>
  31. <td valign="top">Message to send in the body of the email.</td>
  32. <td align="center" valign="middle" rowspan="2">Yes</td>
  33. </tr>
  34. <tr>
  35. <td valign="top">files</td>
  36. <td valign="top">Filename(s) of text to send in the body of the email.
  37. Multiple files are comma-separated.</td>
  38. </tr>
  39. <tr>
  40. <td valign="top">mailhost</td>
  41. <td valign="top">Host name of the mail server.</td>
  42. <td align="center" valign="top">No, default to &quot;localhost&quot;</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">subject</td>
  46. <td valign="top">Email subject line.</td>
  47. <td align="center" valign="top">No</td>
  48. </tr>
  49. </table>
  50. <h3>Examples</h3>
  51. <pre>
  52. &lt;mail from=&quot;me&quot; tolist=&quot;you&quot; subject=&quot;Results of nightly build&quot;
  53. files=&quot;build.log&quot;/&gt;</pre>
  54. <p>Sends an eMail from <i>me</i> to <i>you</i> with a subject of
  55. <i>Results of nightly build</i> and includes the contents of <i>build.log</i>
  56. in the body of the message.</p>
  57. <hr>
  58. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  59. Reserved.</p>
  60. </body>
  61. </html>