SendToRaw function

function SendToRaw(Const MailFrom, MailTo, SMTPHost: string; Const MailData: Tstrings; Const Username, Password: string): Boolean;

Unit
SMTPsend

Description
A very useful function and example of its use would be found in the TSMTPsend object. Send maildata (text of e-mail with SMTP headers!) from "MailFrom" e-mail address to "MailTo" e-mail address (There can be only ONE e-mail address, multiple receivers are not supported!). Function sends e-mail to a SMTP server defined in "SMTPhost" parameter. Username and password are used for authorization to the "SMTPhost". If you dont want authorization, set "Username" and "Password" to empty strings. If e-mail message is successfully sent, the result returns true.