For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > January 2006 > Sendmail call









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Sendmail call
Frank J. Russo

2006-01-22, 7:04 pm

Not 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


Frank J. Russo

2006-01-22, 7:04 pm

Please Ignore problem solved. Finally

Frank


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com