hi gurus,
Just a little favor :) I am writing a perl script to
send some text to several recipients, some of which
must be CC'd (not in the To: header). How must a CC
header properly inserted? As an example, suppose I
send to [EMAIL PROTECTED] and Cc'd to [EMAIL PROTECTED] and [EMAIL PROTECTED] My
code is this:

open(MAIL, "| /usr/sbin/sendmail a\@a.com");
open(TEXT, "mail.txt");
while (<TEXT>)
 {
  print MAIL "From: me\@sgp.a.com\n";
  print MAIL "Cc: c\@c.com, b\@b.com\n";
  print MAIL "Subject: test only\n\n";
  print MAIL $_;
 }
close(TEXT);
close(MAIL);

With the above, [EMAIL PROTECTED] actually received the mail but
those in the CC didnt. Any hints please? I'd really
appreciate any comments.

Thanks.

Mary Christie


 

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to