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 );
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.
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;
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.