Internet Direct (Indy) Version 9.0.2 Beta
TIdSMTP.Send
Sends an Indy message instance to the SMTP server.

procedure Send(AMsg: TIdMessage); virtual;
Parameters
AMsg: TIdMessage
Message instance to be transmitted.

Description
Send is a procedure that sends the TIdMessage specified in AMsg using the SMTP server specified in the Host property. Send will reset the SMTP session, and call Authenticate when the SMTP session has never been authenticated.

Send transmits RFC 822 message headers to the SMTP server, including From, Recipients, Carbon-Copy recipients, and Blind Carbon-Copy recipients before sending the data and extra RFC 822 message headers for the message. Send inserts the value in MailAgent header as the first values in the data for the message. Send terminates transfer of data to the SMTP server using the '.' end-of-transmission marker.