#!/usr/bin/perl ########################## ####### # ####### MAGIC E-MAILER # ####### CREATED BY # ####### the_actor-guy # ####### # ####### # ####### You may do # ####### whatever you # ####### want with this # ####### script as long # ####### as you leave # ####### this harmless # ####### little credit # ####### to me alone # ####### # ########################## ### NOTE: If you put this on a server that has banner ### ads at the top of the page, they will show up in the ### Magic E-mails this script sends. If your server has ### banner ads at the bottom of every page that is okay, ### they should not show up in the E-mails. ############# EDIT THESE VARIABLES ######################### ### Choose a valid username and password $uname = "username"; $pword = "password"; ### Location of the mail program on your server: $mailprog = "/var/qmail/bin/qmail-inject"; ### The full url of this script: ### NOTE: You should put this script in a directory all ### by itself because it creates lots of text files ### which hold the messages, and you don't want all ### these text files cluttering directories that have ### your other files in it. $fullurl = "http://yoursite.com/Magic-Mailer.cgi"; ### Every time this Magic Mailer is used it sends a heads up ### E-mail to let the owner of the script know it was used. ### Enter the E-mail address to send that heads up to below ### and you must put a \ in front of the @ as shown: $owneremail = "the_actor-guy\@webtv.net"; ###################### ####### # ####### DO NOT EDIT # ####### BELOW # ####### THIS LINE # ####### # ###################### ###################### <~~~~ I MEAN THIS LINE ###################### <~~~~ JUST KIDDIN IT'S THIS LINE print "Content-type: text/html\n\n"; ############## VALID FORM INPUTS ########################### use CGI qw(param); $mailto = param(mailto); $mailfrom = param(mailfrom); $subject = param(subject); $message1 = param(message1); $message2 = param(message2); $mailalert = param(mailalert); $action = param(action); $username = param(username); $password = param(password); ############### MISCELLANEOUS VARS ######################### $header1 = "
";
$footer = "