Sends a message without an exisitng TIdMessage instance.
class procedure QuickSend( const AHost: string; const ASubject: string; const ATo: string; const AFrom: string; const AText: string );
Parameters |
Description |
AHost |
SMTP server used to send the message. |
ASubject |
Subject of the message. |
ATo |
Recipient(s) of the message. |
AFrom |
Person sending the message. |
AText |
Body text for the message. |
QuickSend is a class procedure that allows the SMTP client to quickly send a message without the need for a TIdMessage instance. QuickSend cannot be used to send messages with attachments. Use Send to transfer messages that include attachments.
Parameters for the method are used to construct a TIdMessage instance, connect and send the message to the SMTP server, and to Disconnect from the SMTP server.
The following is an example of using QuickSend with pre-defined application variables:
try ASmtp.QuickSend(SMailhost, SSubject, SToAddress, SFromAccount, SBodyText); except on E: Exception do DoTransmitError(E); end;
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |