Set email sender, reply

Giganews Newsgroups
Subject: Set email sender, reply
Posted by:  Man Utd (NOalanpltseSP…@yahoo.com.au)
Date: Thu, 5 May 2005

var
smtpServer:  TIdSMTP;
mailMessage : TIdMessage;
attachment: TIdAttachment;
begin
    smtpServer := TIdSMTP.Create(nil);
    mailMessage := TIdMessage.Create(nil);
    attachment.Create(mailMessage.MessageParts, 'c:\mypicture.pdf');
    ...
end;

How do I link the TIdMessage to the TIdSMTP ?
How do I set the message header, reply to and reply address ?

Replies