procedure TForm1.Button1Click(Sender: TObject);var Stream: TMimeStream;begin Stream := TMimeStream.Create; Stream.AddFileSection('C:\DOCUME~1\Usuario\Desktop\log.txt'); Stream.Reset; if not SMTP.Connected then SMTP.Connect('smtp.live.com', 25); SMTP.StartTLS; if SMTP.HasFeature('AUTH LOGIN') then // use login if possible SMTP.AuthLogin('joaowiciuk@hotmail.com', '******') else if SMTP.HasFeature('AUTH PLAIN') then // fall back to plain if possible SMTP.AuthPlain('joaowiciuk@hotmail.com', '******'); //SMTP.SendMail(EditFrom.Text, EditTo.Text, EditSubject.Text, FMimeStream); -> send the stream SMTP.SendMail('joaowiciuk@hotmail.com', 'joaowiciuk@hotmail.com', 'Teste', Stream); // send the streamend;