home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet 1996 World Exposition
/
park.org.s3.amazonaws.com.7z
/
park.org.s3.amazonaws.com
/
Pavilions
/
BrainOpera
/
cgi-bin
/
mailing-send-text.cgi
< prev
next >
Wrap
Text File
|
2017-09-21
|
2KB
|
67 lines
#!/usr/local/bin/perl
# Script written by Ben (benjamin@media.mit.edu)
# This script simply takes care of subscribing a person to the mailing list
# Currently, this is done by sending mail to benjamin@media.mit.edu
# soon, it will be automated with majordomo.
# Brain Opera, MIT Media Lab
do 'cgi-hacks.pl';
do 'mail-utilities';
do 'user_info.pl';
require 'flush.pl';
&find_form_args("name|email|interests");
sub html_header {
print "Content-type: text/html\n\n";
&flush(STDOUT);
}
$subject = "NEW BRAINOP SUBSCRIBER";
$user_info=&get_user_info();
$message = "NEW SUBSCRIBER : $name $email\n
INTERESTS: $interests\n
USER INFO: $user_info";
# Send mail to webmaster
&mailer("$name","$email","Brain Opera Webmaster","webmaster@brainop.media.mit.edu","$subject","$message");
# Send mail to user to welcome him to mailing list
open(welcome,"/users/benjamin/welcome.txt");
@input=<welcome>;
$welcome_text="@input";
close(welcome);
# Append the email address to the list of members
open(list,">> /users/benjamin/lists/mailing-list");
print list "$email\n";
close(list);
# Send mail to the person and send the welcome message
&mailer_user("The Brain Opera Web Master","webmaster@brainop.media.mit.edu","$name","$email","Welcome !","$welcome_text");
&html_header;
print "<HTML><HEAD><TITLE>Welcome to the Brain Opera Mailing List</TITLE></HEAD>
<BODY>
<center><h1>Welcome to <br>the Brain Opera Mailing List</h1>
<hr>
<h2>
Your email address has been added to our mailing list.<br>
You should soon receive an email confirming your presence on the list. Meanwhile, feel free to continue<br>
<a href=\"/text-site/intro/textintro.html\">browsing our site</a>.</font>
<hr size=3>
<address>webmaster@brainop.media.mit.edu</address></BODY></HTML>";