SendEmailAttachText.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="SendEmailAttachText">
  5. <title>SendEmailAttachText</title>
  6. <para><emphasis role="bold">STD.System.Email.SendEmailAttachText<indexterm>
  7. <primary>STD.System.Email.SendEmailAttachText</primary>
  8. </indexterm> <indexterm>
  9. <primary>System.Email.SendEmailAttachText</primary>
  10. </indexterm> <indexterm>
  11. <primary>Email.SendEmailAttachText</primary>
  12. </indexterm> <indexterm>
  13. <primary>SendEmailAttachText</primary>
  14. </indexterm>( </emphasis> <emphasis>sendto, subject, body, attachment,
  15. mimietype, filename, server, port, sender</emphasis> <emphasis role="bold">
  16. )</emphasis></para>
  17. <informaltable colsep="0" frame="none" rowsep="0">
  18. <tgroup cols="2">
  19. <colspec colwidth="80.50pt" />
  20. <colspec />
  21. <tbody>
  22. <row>
  23. <entry><emphasis>sendto</emphasis></entry>
  24. <entry>A null-terminated string containing a comma-delimited list of
  25. the addresses of the intended recipients. The validity of the
  26. addresses is not checked, so it is the programmer's responsibility
  27. to ensure they are all valid.</entry>
  28. </row>
  29. <row>
  30. <entry><emphasis>subject</emphasis></entry>
  31. <entry>A null-terminated string containing the subject line.</entry>
  32. </row>
  33. <row>
  34. <entry><emphasis>body</emphasis></entry>
  35. <entry>A null-terminated string containing the text of the email to
  36. send. This must be character encoding “ISO-8859-1 (latin1)” (the ECL
  37. default character set). Text in any other character set must be sent
  38. as an <emphasis>attachment</emphasis>.</entry>
  39. </row>
  40. <row>
  41. <entry><emphasis>attachment</emphasis></entry>
  42. <entry>A null-terminated string containing the text to
  43. attach.</entry>
  44. </row>
  45. <row>
  46. <entry><emphasis>mimetype</emphasis></entry>
  47. <entry>A null-terminated string containing the MIME-type of the
  48. <emphasis>attachment</emphasis>, which may include entrymeters (such
  49. as ‘text/plain; charset=ISO-8859-3’).</entry>
  50. </row>
  51. <row>
  52. <entry><emphasis>filename</emphasis></entry>
  53. <entry>A null-terminated string containing the name of the
  54. <emphasis>attachment</emphasis> for the mail reader to
  55. display.</entry>
  56. </row>
  57. <row>
  58. <entry><emphasis>server</emphasis></entry>
  59. <entry>Optional. A null-terminated string containing the name of the
  60. mail server. If omitted, defaults to the value in the SMTPserver
  61. environment variable.</entry>
  62. </row>
  63. <row>
  64. <entry><emphasis>port</emphasis></entry>
  65. <entry>Optional. An UNSIGNED4 integer value containing the port
  66. number. If omitted, defaults to the value in the SMTPport
  67. environment variable.</entry>
  68. </row>
  69. <row>
  70. <entry><emphasis>sender</emphasis></entry>
  71. <entry>Optional. A null-terminated string containing the address of
  72. the sender. If omitted, defaults to the value in the
  73. emailSenderAddress environment variable.</entry>
  74. </row>
  75. </tbody>
  76. </tgroup>
  77. </informaltable>
  78. <para>The <emphasis role="bold">SendEmailAttachText </emphasis>function
  79. sends an email message with a text <emphasis>attachment</emphasis>.</para>
  80. <para>Example:</para>
  81. <programlisting format="linespecific">STD.System.Email.SendEmailAttachText( 'me@mydomain.com', 'testing 1,2,3',
  82. 'this is a test message', 'this is a test attachment',
  83. 'text/plain; charset=ISO-8859-3', 'attachment.txt');</programlisting>
  84. </sect1>