diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 04:28:21 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 04:28:21 +0000 |
commit | 0a4c1534f39511894728da193ab8225ad6022de9 (patch) | |
tree | 683b711accf64eca486b138cbc034c609f93a53a /doc/smtp.html | |
parent | 8e80e38f2c3121242b3b2f7a45a960c9af4d1a68 (diff) | |
download | luasocket-0a4c1534f39511894728da193ab8225ad6022de9.tar.gz luasocket-0a4c1534f39511894728da193ab8225ad6022de9.tar.bz2 luasocket-0a4c1534f39511894728da193ab8225ad6022de9.zip |
Still work to do in the manual...
Diffstat (limited to 'doc/smtp.html')
-rw-r--r-- | doc/smtp.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/smtp.html b/doc/smtp.html index 03698bf..0fdc4a4 100644 --- a/doc/smtp.html +++ b/doc/smtp.html | |||
@@ -105,6 +105,8 @@ smtp.<b>send{</b><br> | |||
105 | from = <i>string</i>,<br> | 105 | from = <i>string</i>,<br> |
106 | rcpt = <i>string</i> or <i>string-table</i>,<br> | 106 | rcpt = <i>string</i> or <i>string-table</i>,<br> |
107 | source = <i>LTN12 source</i>,<br> | 107 | source = <i>LTN12 source</i>,<br> |
108 | [user = <i>string</i>],<br> | ||
109 | [password = <i>string</i>],<br> | ||
108 | [server = <i>string</i>],<br> | 110 | [server = <i>string</i>],<br> |
109 | [port = <i>string</i>]<br> | 111 | [port = <i>string</i>]<br> |
110 | [domain = <i>string</i>],<br> | 112 | [domain = <i>string</i>],<br> |
@@ -127,7 +129,11 @@ address, or a string | |||
127 | in case there is just one recipient. | 129 | in case there is just one recipient. |
128 | The contents of the message are given by a <em>simple</em> LTN12 <tt>source</tt>. Several | 130 | The contents of the message are given by a <em>simple</em> LTN12 <tt>source</tt>. Several |
129 | arguments are optional: | 131 | arguments are optional: |
132 | </p> | ||
130 | <ul> | 133 | <ul> |
134 | <li> <tt>user</tt>, <tt>password</tt>: User and password for | ||
135 | authentication. The function will attempt LOGIN and PLAIN authentication | ||
136 | methods if supported by the server (both are unsafe); | ||
131 | <li> <tt>server</tt>: Server to connect to. Defaults to "localhost"; | 137 | <li> <tt>server</tt>: Server to connect to. Defaults to "localhost"; |
132 | <li> <tt>port</tt>: Port to connect to. Defaults to 25; | 138 | <li> <tt>port</tt>: Port to connect to. Defaults to 25; |
133 | <li> <tt>domain</tt>: Domain name used to greet the server; Defaults to the | 139 | <li> <tt>domain</tt>: Domain name used to greet the server; Defaults to the |
@@ -135,7 +141,6 @@ local machine host name; | |||
135 | <li> <tt>step</tt>: LTN12 pump step function used to pass data from the | 141 | <li> <tt>step</tt>: LTN12 pump step function used to pass data from the |
136 | source to the server. Defaults to the LTN12 <tt>pump.step</tt> function. | 142 | source to the server. Defaults to the LTN12 <tt>pump.step</tt> function. |
137 | </ul> | 143 | </ul> |
138 | </p> | ||
139 | 144 | ||
140 | <p class=return> | 145 | <p class=return> |
141 | If successful, the function returns 1. Otherwise, the function returns | 146 | If successful, the function returns 1. Otherwise, the function returns |
@@ -293,7 +298,7 @@ and an epilogue. | |||
293 | 298 | ||
294 | <p class=return> | 299 | <p class=return> |
295 | The function returns a <em>simple</em> LTN12 source that produces the | 300 | The function returns a <em>simple</em> LTN12 source that produces the |
296 | message contents as defined by <tt>mesgt</tt>. Hopefuly, the following | 301 | message contents as defined by <tt>mesgt</tt>. Hopefully, the following |
297 | example will make things clear. When in doubt, refer to the appropriate RFC | 302 | example will make things clear. When in doubt, refer to the appropriate RFC |
298 | as listed in the introduction. </p> | 303 | as listed in the introduction. </p> |
299 | 304 | ||