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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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">includefilenames</td>
  41. <td valign="top">Include filename(s) before file contents.
  42. Valid only when the files attribute is specified.</td>
  43. <td align="center" valign="top">No, default is <I>false</I></td>
  44. </tr>
  45. <tr>
  46. <td valign="top">mailhost</td>
  47. <td valign="top">Host name of the mail server.</td>
  48. <td align="center" valign="top">No, default is &quot;localhost&quot;</td>
  49. </tr>
  50. <tr>
  51. <td valign="top">mailport</td>
  52. <td valign="top">Port of the mail server.</td>
  53. <td align="center" valign="top">No, default to SMTP default (25)</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">subject</td>
  57. <td valign="top">Email subject line.</td>
  58. <td align="center" valign="top">No</td>
  59. </tr>
  60. </table>
  61. <h3>Examples</h3>
  62. <pre>
  63. &lt;mail from=&quot;me&quot; tolist=&quot;you&quot; subject=&quot;Results of nightly build&quot;
  64. files=&quot;build.log&quot;/&gt;</pre>
  65. <p>Sends an eMail from <i>me</i> to <i>you</i> with a subject of
  66. <i>Results of nightly build</i> and includes the contents of <i>build.log</i>
  67. in the body of the message.</p>
  68. <hr>
  69. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  70. Reserved.</p>
  71. </body>
  72. </html>