SMTP Component [IP*Works! V8]
Properties
Methods
Events
Configuration Settings
The SMTP Component is used to send Internet mail using the SMTP protocol
(the Internet mail standard).
NOTE: What follows is a very short description of the component interfaces.
For more information, please consult the help files that come with the respective package.
Remarks
The SMTP Component implements a standard SMTP client as specified in RFC 821.
It has a simple plug-and-play interface. It contains a number
of properties like SendTo, Subject, From, Cc, BCc, etc. that
map directly to the internet mail message headers with the same name (RFC 822).
The message text is set in MessageText. Messages
are sent by calling the Send method.
The component supports message delivery to multiple recipients through the
SendTo, Cc, and BCc properties. Simply specify the destination email
addresses separated by commas.
The interface of the component is open-ended. New features, including MIME
attachments can be supported by using the OtherHeaders property.
A number of events provide feedback during the operation of the
component. The Transfer event is fired during message delivery to show
the number of bytes delivered. The PITrail event traces the commands
that are sent to the server and the respective replies.
Property List
The following is the full list of the properties of the component with short
descriptions. Click on the links for further details.
| |
| AllowExtensions | A switch allowing the component to use ESMTP features (SMTP extensions). |
| AuthMechanism | Used when connecting to the mail server. |
| BCc | A comma separated list of addresses for blind carbon copies (optional). |
| Cc | A comma separated list of addresses for carbon copies (optional). |
| Command | Used to send additional commands directly to the server. |
| Connected | Shows whether the component is connected. |
| DeliveryNotificationTo | Email address to send to which to send a delivery notification. |
| FirewallAutoDetect | This property tells the component whether or not to automatically detect and use firewall system settings, if available. |
| FirewallType | This property determines the type of firewall to connect through. |
| FirewallHost | This property contains the name or IP address of firewall (optional). |
| FirewallPassword | This property contains a password if authentication is to be used when connecting through the firewall. |
| FirewallPort | This property contains the TCP port for the firewall Host . |
| FirewallUser | This property contains a user name if authentication is to be used connecting through a firewall. |
| From | The email address of the sender (required). |
| Idle | The current status of the component. |
| Importance | Importance of the mail message (optional). |
| LastReply | The last reply from the server. |
| LocalHost | The name of the local host or user-assigned IP interface through which connections are initiated or accepted. |
| MailPort | The server port for SMTP (default 25). |
| MailServer | The name or address of a mail server (mail relay). |
| MessageDate | Date of the mail message (optional). |
| MessageHeaderCount | The number of records in the MessageHeader arrays. |
| MessageHeaderField | This property contains the name of the HTTP header (same case as it is delivered). |
| MessageHeaderValue | This property contains the header contents. |
| MessageHeadersString | String representation of RFC822-encoded headers of the message. |
| MessageId | The Message Identifier for the message. |
| MessageRecipientCount | The number of records in the MessageRecipient arrays. |
| MessageRecipientAddress | This property contains the email address of the recipient. |
| MessageRecipientName | This property contains name of the recipient. |
| MessageRecipientOptions | This property contains the recipient sending options (used only by SMTP). |
| MessageRecipientType | This property contains the recipient type: To, Cc, or BCc. |
| MessageText | The full text of the message to send (without headers). |
| OtherHeaders | An RFC 822 compliant string consisting of extra headers. |
| Password | A password for logon to the MailServer. |
| Priority | Priority of the mail message (optional). |
| ReadReceiptTo | Email address to send a read receipt to. |
| ReplyTo | A mail address to which to reply (optional). |
| ReturnPath | Sets the Return-Path to be used for sending email. |
| SendTo | A comma separated list of addresses for destinations (required). |
| Sensitivity | Sensitivity of the mail message (optional). |
| Subject | The subject of the mail message (optional). |
| Timeout | A timeout for the component. |
| User | A user identifier to login as in the MailServer. |
Method List
The following is the full list of the methods of the component with short
descriptions. Click on the links for further details.
Event List
The following is the full list of the events fired by the component with short
descriptions. Click on the links for further details.
| |
| ConnectionStatus | Fired to indicate changes in connection state. |
| EndTransfer | Fired when the message text completes transferring. |
| Error | Information about errors during data delivery. |
| Expand | Fired for every email address returned by the server when the Expand method is called. |
| PITrail | Traces the commands sent to the mail server, and the respective replies. |
| StartTransfer | Fired when the message text starts transferring. |
| Transfer | Fired while the message text gets transferred to MailServer. |
Configuration Settings
The following is a list of configuration settings for the component with short
descriptions. Click on the links for further details.
| |
| Charset | When set, the message headers will be encoded using the specified Charset. |
| Hello | The argument for HELO (herald) command to the server (defaults to local host name). |
| KeepQueue | If set to True, queued files are not deleted after a successful send. |
| MaxHeaderLength | Maximum length for headers to avoid line folding (default 80). |
| OtherHeaders | An RFC 822 compliant string consisting of extra headers. |
| ReturnPath | Sets the Return-Path to be used for sending email. |
| StopOnBccErrors | Instructs the component to stop sending the message if the server does not acknowledge any of the BCCs. |
| UseIPv6 | Whether or not to use IPv6. |
| MaxLineLength | The maximum amount of data to accumulate when no EOL is found. |
| FirewallAutoDetect | Tells the component whether or not to automatically detect and use firewall system settings, if available. |
| FirewallHost | Name or IP address of firewall (optional). |
| FirewallListener | If true, the component binds to a SOCKS firewall as a server (IPPort only). |
| FirewallPassword | Password to be used if authentication is to be used when connecting through the firewall. |
| FirewallPort | The TCP port for the FirewallHost;. |
| FirewallUser | A user name if authentication is to be used connecting through a firewall. |
| FirewallType | Determines the type of firewall to connect through. |
| TcpNoDelay | Whether or not to delay when sending packets. |
| AbsoluteTimeout | Determines whether timeouts are inactivity timeouts or absolute timeouts. |
| FirewallData | Used to send extra data to the firewall. |
| InBufferSize | The size in bytes of the incoming queue of the socket. |
| OutBufferSize | The size in bytes of the outgoing queue of the socket. |
| CodePage | The system code page used for Unicode to Multibyte translations. |