Hi Gang:
First of all, i would like to apologize this email for non-modperl question. I
really have trouble to
find correct discussion group to ask help. The question is:
I wrote a perl script to send out my postcard for over 300 my friends. The
textbody is my postcard which is html file
including over 30 images. I want all of my friends see the postcard immediately
but not html file. I tried and tested. My friends
just got html file not postcard. How can i do that? I know that if you send it
from netscape message, you have choice using
send html but i have to write script for over 300 people. Is any way to do
that? Thank you very much for advices. Enclude
is the original script:
#!/usr/bin/perl -w
$|=1;
$body = `cat ./test.html`;
open(ADDR, "./testaddr");
while(<ADDR>) {
$all_info = $_;
($addressee,$lastname,$firstname) = split(/\|/,$all_info);
# $addressee =~ s/^\s+//;
# $addressee =~ s/\s+$//;
# $comment =~ s/^\s+//;
# $comment =~ s/\s+$//;
if($addressee =~ /\@/) {
chop $firstname;
open( OUTPUT, "| /usr/lib/sendmail -oi " . $addressee ) ;
select( OUTPUT ) ;
print "To: <$firstname $lastname> <$addressee>\n" ;
print "From: Postcard_Center\@test\.com\n";
print "Subject: Win A Free Visit from TEST.COM\n\n";
print "\nDear $firstname $lastname,\n\n\n";
print "$body\n";
}
}
close(ADDR);
exit(1);
testaddr is text file for all of email address.
test.html is body which is html file.
I hope that my friends can see my postcard not html source. Thank you very
much.
Steven.
George Sanderson wrote:
> I down loaded the CVS file apache-1.3_20000825041201.tar.gz and attempted a
> make, that included:
> --add-module=/usr/src/mod_layout-2.3/mod_layout.c
> It expects src/include/alloc.h
> I noticed that this header file was included in the apache_1.3.12
> distribution.
> Is the file missing?