Forward message in Indy 10

Giganews Newsgroups
Subject: Forward message in Indy 10
Posted by:  mitring (pfraczek.nospam@novatic.pl)
Date: Wed, 16 Jan 2008

Hi how to easy way to forward message.

I try something like this but is wrong way :/

procedure TMailClient.ForwardMail(AMsg: String);
var
  tmpMsg: TIdMessage;
  ErrorMsg: PChar;
begin
  if ( FileExists(AMsg) ) then
  begin
    tmpMsg:= TIdMessage.Create(NIL);
    try
      tmpMsg.LoadFromFile(AMsg);
      tmpMsg.Recipients.Clear;
      tmpMsg.Recipients.Add.Address:= 'ma…@mail.com';
{...}

Thx 4 help ;D

Replies