PowerList¶ó´Â °·ÂÇÑ ¸ÞÀϸµ ¸®½ºÆ®¸¦ ±¸Çؼ ¾²°í ÀÖ½À´Ï´Ù.
ÃÖ´ë 10¸¸¸í±îÁö ¸ÞÀÏ ¹ß¼Û¿¡ ÀÌ»óÀÌ ¾ø´Ù°í Çϳ׿ä.
´Ü ÇÑ°¡Áö ¹®Á¦´Â ¸ÞÀÏ ¹ß¼Û½Ã html űװ¡ Áö¿øµÇÁö ¾Ê´Â Á¡ÀÔ´Ï´Ù.
±×·¡¼ Á» °íÃĺôµ¥¿ä...
´ÙÀ½ ºÎºÐÀ».. (Àüü ¼Ò½º´Â ¾Æ·¡¿¡ ÀÖ½À´Ï´Ù.)
open(MAIL, "&pip;$mail_prog -t") &pip; &pip; &error("Could not send out emails");
print MAIL "To: $line
";
print MAIL "From: $your_name <$your_email>
";
print MAIL "Subject: $INPUT{
subject
}
";
print MAIL "$INPUT{
body
}";
print MAIL "
";
´ÙÀ½°ú °°ÀÌ ¹Ù²Ù¾ú½À´Ï´Ù.
open(MAIL, "&pip;$mail_prog -t") &pip; &pip; &error("Could not send out emails");
print MAIL "To: $line
";
print MAIL "From: $your_name <$your_email>
";
print MAIL "Subject: $INPUT{
subject
}
";
print MAIL "Content-type: text/html
";
print MAIL "$INPUT{
body
}";
print MAIL "
";
ÀÌ·¸°Ô ÇÏ´Ï ¾Æ¿ô·è¿¡¼ ¸ÞÀÏÀ» ¹Þ¾Æº¼¶§´Â html ű׸¦ ¿Ïº®È÷ Áö¿øÇß½À´Ï´Ù.
orgio mail µî ±âŸ À¥¸ÞÀÏ¿¡¼µµ ÀÌ»óÀÌ ¾ø´Â °Í °°Àºµ¥...
À¯µ¶ °¡Àå ¸¹Àº ȸ¿øÀ» º¸À¯ÇÑ ÇѸÞÀÏ¿¡¼¸¸ ÷ºÎ ÈÀÏ·Î ³ªÅ¸³³´Ï´Ù.
¾µµ¥¾øÀÌ ¿Ø ¹ÙÀÌ·¯½º °Ë»çÇϰڳĴ ¸Þ½ÃÁö°¡ ¶ß³×¿ä...
Attached file
File name: unknown / ¹ÙÀÌ·¯½º üũ ÈÄ ´Ù¿î·Îµå
Content-Type: text/html
ÀÌ·± ½ÄÀ¸·Î¿ä...
¹ã»õ º°°É ´Ù ¶â¾î°íÄ¡°í ÇغÁµµ ´äÀ» ¸ø ã¾Ò½À´Ï´Ù.
ÇѸÞÀÏ¿¡¼ ÷ºÎÈÀÏÀÌ ¾Æ´Ï¶ó ¹Ù·Î html ű׸¦ Áö¿øÇÒ ¼ö ÀÖ´Â ¹æ¹ý
Á¶¾ð ºÎŹ µå¸³´Ï´Ù.
´ÙÀ½Àº PowerList.zip¿¡ Æ÷ÇÔµÈ cgi ÈÀÏÀÇ ÀüüÀÔ´Ï´Ù.
cgi Çϳª·Î ±¸¼ºµÈ ÇÁ·Î±×·¥ÀÔ´Ï´Ù.
Âü°íÇØÁÖ¼¼¿ä.
°ü·Ã »çÀÌÆ® -
http://solutionscripts.com/forum/index.cgiPowerList 1.4
- mail.cgi -
#!/usr/bin/perl
#
#######################################################
# Power List version 1.4
#
# Created by: Solution Scripts
# Email: solutions@solutionscripts.com
# Web:
http://solutionscripts.com#
#######################################################
#
#
# COPYRIGHT NOTICE:
#
# Copyright 1997-1999 Solution Scripts All Rights Reserved.
#
# This program is being distributed as freeware. It may be used and
# modified free of charge, so long as this copyright notice, the header
# above and all the footers in the program that give me credit remain
# intact. Please also send me an email, and let me know
# where you are using this script.
#
# By using this program you agree to indemnify Solution Scripts from any liability.
#
# Selling the code for this program without prior written consent is
# expressly forbidden. Obtain permission before redistributing this
# program over the Internet or in any other medium. In all cases
# copyright and header must remain intact.
#
######################################################
$name_list = "Power List Demo";
# THE NAME OF YOUR MAILING LIST
$your_email = "email@domain.tld";
# YOUR EMAIL ADDRESS
# don
t forget the before @
$your_name = "Power List";
# YOUR NAME
# Will show up in the from field
# of all emails sent
$mail_prog = "/usr/sbin/sendmail";
# PATH TO MAILER PROGRAM:
# This has to point to your sendmail program. If your server does not
# have sendmail, you may need to modify the open(MAIL,"&pip;$mailprog -t");
# lines in all of the scripts to support whatever format your server
# email system requires. If you are not sure, ask your server
# administrator. If you have a virtual domain with your own root
# directory, look in the /usr/sbin , /usr/lib, /usr/bin, and similar
# directories, for a program named sendmail. If it does not exist,
# ask your server admin what is the correct calling method. This is a
# server dependent problem, and we at Solution Scripts cannot help you with
# this. If you have other working scripts that send email, look at
# them for clues.
$remove_link = 1;
# This will put a link at the bottom of all emails sent out, where a user can click on
# to automatically be removed from your mailing list. Set to 1 for on, 0 for off.
##############################################################################
# CHANGE NO MORE
$version = "1.4";
$thisurl = $ENV{
SCRIPT_NAME
};
$mail_url = $ENV{
SERVER_NAME
};
read(STDIN, $buffer, $ENV{
CONTENT_LENGTH
});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/ / /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
if ($INPUT{$name}) { $INPUT{$name} = $INPUT{$name}.",".$value; }
else { $INPUT{$name} = $value; }
}
unless ($INPUT{
email
}) {
print "Content-type: text/html
";
&Top;
}
$temp=0;
$temp=$ENV{
QUERY_STRING
};
if ($temp) {
$INPUT{
address
} = $temp;
&remove;
}
if ($INPUT{
email
}) { &email; }
elsif ($INPUT{
action
} eq "subscribe") { &subscribe; }
elsif ($INPUT{
action
} eq "remove") { &remove; }
elsif ($INPUT{
newpass
}) { &newpass; }
elsif ($INPUT{
delete_select
}) { &delete_select; }
elsif ($INPUT{
delete_final
}) { &delete_final; }
elsif ($INPUT{
sendemail
}) { &sendemail; }
elsif ($INPUT{
address
}) { &subscribe; }
else { &admin; }
exit;
########### MAIN ADMIN SCREEN ##########
sub admin {
open (PASSWORD, "password.txt");
$password =
;
close (PASSWORD);
chop ($password) if ($password =~ /
$/);
if (!$password) {
print <
Set Admin Password
|
Before you can do anything else, you ll need to set your administrative password. This will allow you to use the administrative functions,
Please enter your desired password below. (Enter it twice.)
|
EOF
&Bottom;
exit;
}
$numemail=0;
open(LIST,"address.txt");
@addresses=;
close(LIST);
$numemail = push(@addresses);
print <