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.6 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Mail</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">One of the two</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">failonerror</td>
  41. <td valign="top">flag to indicate whether to halt the build on
  42. any error.</td>
  43. <td align="center" valign="top">No, default is <I>true</I></td>
  44. </tr>
  45. <tr>
  46. <td valign="top">includefilenames</td>
  47. <td valign="top">Include filename(s) before file contents.
  48. Valid only when the files attribute is specified.</td>
  49. <td align="center" valign="top">No, default is <I>false</I></td>
  50. </tr>
  51. <tr>
  52. <td valign="top">mailhost</td>
  53. <td valign="top">Host name of the mail server.</td>
  54. <td align="center" valign="top">No, default is &quot;localhost&quot;</td>
  55. </tr>
  56. <tr>
  57. <td valign="top">mailport</td>
  58. <td valign="top">Port of the mail server.</td>
  59. <td align="center" valign="top">No, default to SMTP default (25)</td>
  60. </tr>
  61. <tr>
  62. <td valign="top">subject</td>
  63. <td valign="top">Email subject line.</td>
  64. <td align="center" valign="top">No</td>
  65. </tr>
  66. </table>
  67. <h3>Examples</h3>
  68. <pre>
  69. &lt;mail from=&quot;me&quot; tolist=&quot;you&quot; subject=&quot;Results of nightly build&quot;
  70. files=&quot;build.log&quot;/&gt;</pre>
  71. <p>Sends an eMail from <i>me</i> to <i>you</i> with a subject of
  72. <i>Results of nightly build</i> and includes the contents of <i>build.log</i>
  73. in the body of the message.</p>
  74. <hr>
  75. <p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
  76. Reserved.</p>
  77. </body>
  78. </html>