In fact, I don't see a perl question at all. I think the answer somehow relates to the fact that the To: header is really part of the body of the message and the smtp "rcpt to:" command describes the actual recipients.
If you want to do this in a perl way, look at Net::SMTP and MIME::Lite. And if you want to really really avoid work, see Net::SMTP::OneLiner.
-Paul
In reply to Re: sendmail with perl
by jettero
in thread sendmail with perl
by mwhiting
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |