From vs Sender (redirect, forward problem)

Giganews Newsgroups
Subject: From vs Sender (redirect, forward problem)
Posted by:  PiotrL (vpio…@poczta.onet.pl)
Date: Wed, 1 Oct 2003

Hello,

Is it OK, that TIdSMTP component is using "From" address as Sender address?
The help file for Indy states that "Sender" is a user that is actually
communicating
with SMTP server and that the "From" field contains the original author of
the message.
As you can see below it is not true...

procedure TIdSMTP.Send(AMsg: TIdMessage);
//......
  SendCmd('MAIL FROM:<' + AMsg.From.Address + '>', 250);    {Do not
Localize}
//......

I have errors on my SMTP server, so it looks like the line should be
changed - to
use "Sender" property. Am I right ?

Note: after change: sender <-> from my message is correctly sent with no
errors.

PiotrL

Replies