View Single Post
Old 02-18-2003, 08:53 AM   #3 (permalink)
saline
I am red.
 
saline's Avatar
 
Join Date: Feb 2003
Location: Cleveland, OH
Posts: 139
saline is on a distinguished road
I've a couple of questions and then a possible solution.

Are we actually dealing with a database or is it just an address book?

"With this script I can emiail all the people in my datatbase.. the problem I have is other people want to emal from the database and they are unable to read the scrilpt."

Should other people have access to it, are they all using the same computer. Essentially my question is are you having a file permissions problem?

I have a little program that enables people to send messages to my cellphone store here:

http://www.bmrpoetry.com/mailer.html

Really all it does is let people send e-mail from the web, you just type in the e-mail address up top and the message below. I just have the e-mail address default to the network that lets people send things to my phone.

I drop the information from the web page to a perl script like, oh I don't know, this one:

#!/usr/pkg/bin/perl

print "Content-type: text/html\n\n";

print "<HTML><BODY>";

if($ENV{'REQUEST_METHOD'} eq 'GET')
{
@pairs = split(/&/, $ENV{'QUERY_STRING'});
}

foreach $pair (@pairs)
{
($key, $value) = split(/=/, $pair);

$key =~ tr/+/ /;
$value =~ tr/+/ /;

$info{$key} = $value;

}

open(MAIL, "|/usr/sbin/sendmail -t");

print MAIL "To: $info{To} \nFrom: $info{From} \n";
print MAIL "Subject: $info{Subject}\n";
print MAIL "$info{Message}\n";

close(MAIL);

print "Give it a second";

print "</BODY></HTML>";

(for more help with perl check out the perl forums or perl.com or get a book or check out the man pages on unix or look at the source for the interpreter and reverse engineer the syntax and keywords, thats what I usually do. I've got a lot of time on my hands...)

And then in a couple seconds my phone beeps and I have the email that was sent on my phone. You could modify my webpage and the script to achieve what I think you're asking to do.
saline is offline   Reply With Quote