SMTP: "to" or/and "recipient" question.

SMTP: "to" or/and "recipient" question.

am 11.11.2005 17:52:58 von Serguei.Goumeniouk

Dear Experts,
I am looking at codes somebody wrote long ago and found strange codes.
As I know the "to" method is just a synonym for the "recipient" one.
Codes which confused me have both calls with different address lists.
What addresses will be used by SMTP in this case:
1) Declared by "to" method;
2) Declared by "recipient" one;
3) All above;
4) The first executed;
5) The last executed.
Regards,
Serguei.

Re: SMTP: "to" or/and "recipient" question.

am 11.11.2005 19:31:52 von nobull67

Serguei.Goumeniouk@cibc.ca wrote:

> I am looking at codes somebody wrote long ago and found strange codes.
> As I know the "to" method is just a synonym for the "recipient" one.
> Codes which confused me have both calls with different address lists.
> What addresses will be used by SMTP in this case:
> 1) Declared by "to" method;
> 2) Declared by "recipient" one;
> 3) All above;
> 4) The first executed;
> 5) The last executed.

The part of the above question that relates to the the Perl module can
be answered by looking at the first two sentences of decription of
recipient in "perldoc SMTP".

The remainder of your question is really one about the SMTP protocol
(nothing to do with Perl).

Nontheless you could resonably infer (without resorting to consulting
the relevant RFC) from the fact that the Perl module's documentation
mentions the possibility of doing this that the answer is probably (3).