Sendmail call

Not sure if this is the group to post to but here goes:

First here is the code:
------------------------------------------------------------ ------
$I1 = 'FJR111 [at] Yahoo.com';
$I2 = 'Full Name';
$subject = 'WebPage Request';
$emailreturn = 'webmaster [at] havelock.org';
$realname = 'webmaster [at] havelock.org';
$CC = 'FJr111 [at] Yahoo.com' . ', ' . $emailreturn;

open (MAIL,"|/usr/sbin/sendmail -t");

print MAIL "To: $I1 \n";
print MAIL "From: $realname \n";
print MAIL "Cc: $CC \n";
print MAIL "Subject: $subject \n\n";

print MAIL "$I2 - Your List # is *$listnr*\nand Your web page access
password is *$pwaccess* ";
print MAIL "Sincerely;\n";
close (MAIL);
------------------------------------------------------------ -------------
I have purpopsly changed the email addresses above so not to display the
actual ones I used.
Now the problems:

Email DOES get sent to the Cc, both addresses. But not the To: and when you
read the email there is no address in the To: line of the header. I
purposely put the same address in the To as in the Cc so I know there is an
address there ??? So Why ???

In the body :

---print MAIL "$I2 - Your List # is *$listnr*\nand Your web page access
password is *$pwaccess* ";-----

Values get printed for $listnr and the $pwaccess in teh email but NOT for
$I2 , but there is clearly a value there. I walked this thru the debugger
and displayed the value (p $I2).

Before you jump on me I have searched the perldoc and FAQ and web for
assistance but found none.

Ideas anyone on where to look / search or what I have done wrong?

Frank
FJRusso [at] Yahoo.com
FJRussonc [ So, 22 Januar 2006 19:05 ] [ ID #1153467 ]

Re: Sendmail call

Please Ignore problem solved. Finally

Frank
FJRussonc [ Mo, 23 Januar 2006 00:30 ] [ ID #1153468 ]
Perl » alt.perl » Sendmail call

Vorheriges Thema: Blather-Adjusting Programs
Nächstes Thema: Started a project in Perl