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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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">mailport</td>
  46. <td valign="top">Port of the mail server.</td>
  47. <td align="center" valign="top">No, default to SMTP default (25)</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">subject</td>
  51. <td valign="top">Email subject line.</td>
  52. <td align="center" valign="top">No</td>
  53. </tr>
  54. </table>
  55. <h3>Examples</h3>
  56. <pre>
  57. &lt;mail from=&quot;me&quot; tolist=&quot;you&quot; subject=&quot;Results of nightly build&quot;
  58. files=&quot;build.log&quot;/&gt;</pre>
  59. <p>Sends an eMail from <i>me</i> to <i>you</i> with a subject of
  60. <i>Results of nightly build</i> and includes the contents of <i>build.log</i>
  61. in the body of the message.</p>
  62. <hr>
  63. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  64. Reserved.</p>
  65. </body>
  66. </html>