|
Internet Direct (Indy) Version 9.0.1 Beta
|
class procedure QuickSend(const AHost: String; const ASubject: String; const ATo: String; const AFrom: String; const AText: String);
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, SUserAccount,
SContactAccount, ABody.Text);
except on E:
do DoReminderTransmitError(E);
end;