Sendmail call
am 22.01.2006 19:05:44 von FJRussoncNot sure if this is the group to post to but here goes:
First here is the code:
------------------------------------------------------------ ------
$I1 = 'FJR111@Yahoo.com';
$I2 = 'Full Name';
$subject = 'WebPage Request';
$emailreturn = 'webmaster@havelock.org';
$realname = 'webmaster@havelock.org';
$CC = 'FJr111@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@Yahoo.com