PittsburghRed
01-11-2005, 05:37 AM
I have included the following in my survey project to send data. The data comes to the first recipient just fine. But the second does not receive the email. It goes to every other address I have tested. So ... why not to: jblase@coe.uga.edu\n ??? cyco are you out there?
The survey is up and running fine except for ...
#send data to authorized recipients
$mailprog = '/usr/sbin/sendmail';
open (MAIL, "|$mailprog -t") || die "Can't open mail program\n";
print MAIL "To: PittsburghRed\@aol.com\n";
print MAIL "From: PghRedWMS\@aol.com\n";
print MAIL "Subject: Survey\n\n";
open(DATA,"/home/endteach/public_html/surveyfile/data.txt");
print MAIL while(<DATA>);
close(DATA);
close(MAIL);
open (MAIL, "|$mailprog -t") || die "Can't open mail program\n";
print MAIL "To: jblase@coe.uga.edu\n";
print MAIL "From: PghRedWMS\@aol.com\n";
print MAIL "Subject: Survey\n\n";
open(DATA,"/home/endteach/public_html/surveyfile/data.txt");
print MAIL while(<DATA>);
close(DATA);
close(MAIL);
The survey is up and running fine except for ...
#send data to authorized recipients
$mailprog = '/usr/sbin/sendmail';
open (MAIL, "|$mailprog -t") || die "Can't open mail program\n";
print MAIL "To: PittsburghRed\@aol.com\n";
print MAIL "From: PghRedWMS\@aol.com\n";
print MAIL "Subject: Survey\n\n";
open(DATA,"/home/endteach/public_html/surveyfile/data.txt");
print MAIL while(<DATA>);
close(DATA);
close(MAIL);
open (MAIL, "|$mailprog -t") || die "Can't open mail program\n";
print MAIL "To: jblase@coe.uga.edu\n";
print MAIL "From: PghRedWMS\@aol.com\n";
print MAIL "Subject: Survey\n\n";
open(DATA,"/home/endteach/public_html/surveyfile/data.txt");
print MAIL while(<DATA>);
close(DATA);
close(MAIL);