Don't add new `To' header when sending mail
commitebdac07f18a6cebb18f2d404cb11cc4ff4b61b98
authorZak B. Elep <zakame@spunge.org>
Sat, 3 Mar 2007 04:39:17 +0000 (3 12:39 +0800)
committerZak B. Elep <zakame@spunge.org>
Sat, 3 Mar 2007 04:39:17 +0000 (3 12:39 +0800)
tree69c2b932745ed18b793d539cd7454ebc9add95f8
parenteacacb7f837b29fd728d248721e3f780f66f15f9
Don't add new `To' header when sending mail

SmartHost::relay() crafts a new `To' header based on the recipients
list. At best, it adds another `To' header on the outgoing mail; at
worst, it may override recipients on the `Cc' and `Bcc' headers.

Therefore, send $data as [ $data ] only.

Signed-off-by: Zak B. Elep <zakame@spunge.org>
lib/Net/SMTP/Server/SmartHost.pm