1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta name="GENERATOR" content="PasDoc 0.9.0">
|
---|
5 | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
---|
6 | <title>smtpsend</title>
|
---|
7 | <link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
---|
8 | </head>
|
---|
9 | <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
|
---|
10 | <h1 class="unit">Unit smtpsend</h1>
|
---|
11 | <table class="sections">
|
---|
12 | <tr>
|
---|
13 | <td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Uses">uses</a></td><td><a class="section" href="#@Classes">Classes, Interfaces, Objects and Records</a></td><td><a class="section" href="#@FuncsProcs">Functions and Procedures</a></td><td>Types</td><td><a class="section" href="#@Constants">Constants</a></td><td>Variables</td></tr></table>
|
---|
14 | <a name="@Description"></a><h2 class="description">Description</h2>
|
---|
15 | <p>
|
---|
16 | SMTP client</p>
|
---|
17 | <p>
|
---|
18 |
|
---|
19 |
|
---|
20 | <p>Used RFC: RFC-1869, RFC-1870, RFC-1893, RFC-2034, RFC-2104, RFC-2195, RFC-2487, RFC-2554, RFC-2821</p>
|
---|
21 | <a name="@Uses"></a><h2 class="uses">uses</h2>
|
---|
22 | <ul class="useslist"><li>SysUtils</li><li>Classes</li><li><a href="blcksock.html">blcksock</a></li><li><a href="synautil.html">synautil</a></li><li><a href="synacode.html">synacode</a></li></ul><h2 class="overview">Overview</h2>
|
---|
23 | <a name="@Classes"></a><h3 class="cio">Classes, Interfaces, Objects and Records</h3>
|
---|
24 | <table class="classestable">
|
---|
25 | <tr class="listheader">
|
---|
26 | <th class="itemname">Name</th>
|
---|
27 | <th class="itemdesc">Description</th>
|
---|
28 | </tr>
|
---|
29 | <tr class="list">
|
---|
30 | <td class="itemname">Class <a class="bold" href="smtpsend.TSMTPSend.html"><code>TSMTPSend</code></a></td>
|
---|
31 | <td class="itemdesc">Implementation of SMTP and ESMTP procotol</td>
|
---|
32 | </tr>
|
---|
33 | </table>
|
---|
34 | <a name="@FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
|
---|
35 | <table class="summary">
|
---|
36 | <tr class="list">
|
---|
37 | <td class="itemcode"><code>function <b><a href="smtpsend.html#SendToRaw">SendToRaw</a></b>(const MailFrom, MailTo, SMTPHost: string; const MailData: TStrings; const Username, Password: string): Boolean;</code></td>
|
---|
38 | </tr>
|
---|
39 | <tr class="list2">
|
---|
40 | <td class="itemcode"><code>function <b><a href="smtpsend.html#SendTo">SendTo</a></b>(const MailFrom, MailTo, Subject, SMTPHost: string; const MailData: TStrings): Boolean;</code></td>
|
---|
41 | </tr>
|
---|
42 | <tr class="list">
|
---|
43 | <td class="itemcode"><code>function <b><a href="smtpsend.html#SendToEx">SendToEx</a></b>(const MailFrom, MailTo, Subject, SMTPHost: string; const MailData: TStrings; const Username, Password: string): Boolean;</code></td>
|
---|
44 | </tr>
|
---|
45 | </table>
|
---|
46 | <a name="@Constants"></a><h3 class="summary">Constants</h3>
|
---|
47 | <table class="summary">
|
---|
48 | <tr class="list">
|
---|
49 | <td class="itemcode"><code><b><a href="smtpsend.html#cSmtpProtocol">cSmtpProtocol</a></b> = '25';</code></td>
|
---|
50 | </tr>
|
---|
51 | </table>
|
---|
52 | <h2 class="description">Description</h2>
|
---|
53 | <h3 class="detail">Functions and Procedures</h3>
|
---|
54 | <table class="detail">
|
---|
55 | <tr class="list">
|
---|
56 | <td class="itemcode"><a name="SendToRaw"></a><code>function <b>SendToRaw</b>(const MailFrom, MailTo, SMTPHost: string; const MailData: TStrings; const Username, Password: string): Boolean;</code></td>
|
---|
57 | </tr>
|
---|
58 | </table>
|
---|
59 | <p>
|
---|
60 | A very useful function and example of its use would be found in the TSMTPsend object. Send maildata (text of e-mail with all SMTP headers! For example when text of message is created by <a class="normal" href="mimemess.TMimeMess.html">TMimeMess</a> object) from "MailFrom" e-mail address to "MailTo" e-mail address (If you need more then one receiver, then separate their addresses by comma).
|
---|
61 |
|
---|
62 | <p>Function sends e-mail to a SMTP server defined in "SMTPhost" parameter. Username and password are used for authorization to the "SMTPhost". If you don't want authorization, set "Username" and "Password" to empty strings. If e-mail message is successfully sent, the result returns <code>True</code>.
|
---|
63 |
|
---|
64 | <p>If you need use different port number then standard, then add this port number to SMTPhost after colon. (i.e. '127.0.0.1:1025')</p>
|
---|
65 | <table class="detail">
|
---|
66 | <tr class="list">
|
---|
67 | <td class="itemcode"><a name="SendTo"></a><code>function <b>SendTo</b>(const MailFrom, MailTo, Subject, SMTPHost: string; const MailData: TStrings): Boolean;</code></td>
|
---|
68 | </tr>
|
---|
69 | </table>
|
---|
70 | <p>
|
---|
71 | A very useful function and example of its use would be found in the TSMTPsend object. Send "Maildata" (text of e-mail without any SMTP headers!) from "MailFrom" e-mail address to "MailTo" e-mail address with "Subject". (If you need more then one receiver, then separate their addresses by comma).
|
---|
72 |
|
---|
73 | <p>This function constructs all needed SMTP headers (with DATE header) and sends the e-mail to the SMTP server defined in the "SMTPhost" parameter. If the e-mail message is successfully sent, the result will be <code>True</code>.
|
---|
74 |
|
---|
75 | <p>If you need use different port number then standard, then add this port number to SMTPhost after colon. (i.e. '127.0.0.1:1025')</p>
|
---|
76 | <table class="detail">
|
---|
77 | <tr class="list">
|
---|
78 | <td class="itemcode"><a name="SendToEx"></a><code>function <b>SendToEx</b>(const MailFrom, MailTo, Subject, SMTPHost: string; const MailData: TStrings; const Username, Password: string): Boolean;</code></td>
|
---|
79 | </tr>
|
---|
80 | </table>
|
---|
81 | <p>
|
---|
82 | A very useful function and example of its use would be found in the TSMTPsend object. Sends "MailData" (text of e-mail without any SMTP headers!) from "MailFrom" e-mail address to "MailTo" e-mail address (If you need more then one receiver, then separate their addresses by comma).
|
---|
83 |
|
---|
84 | <p>This function sends the e-mail to the SMTP server defined in the "SMTPhost" parameter. Username and password are used for authorization to the "SMTPhost". If you dont want authorization, set "Username" and "Password" to empty Strings. If the e-mail message is successfully sent, the result will be <code>True</code>.
|
---|
85 |
|
---|
86 | <p>If you need use different port number then standard, then add this port number to SMTPhost after colon. (i.e. '127.0.0.1:1025')</p>
|
---|
87 | <h3 class="detail">Constants</h3>
|
---|
88 | <table class="detail">
|
---|
89 | <tr class="list">
|
---|
90 | <td class="itemcode"><a name="cSmtpProtocol"></a><code><b>cSmtpProtocol</b> = '25';</code></td>
|
---|
91 | </tr>
|
---|
92 | </table>
|
---|
93 | <hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:51</em>
|
---|
94 | </span>
|
---|
95 | </body></html>
|
---|