Click to See Complete Forum and Search --> : sendmail


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);

Nedals
01-12-2005, 01:41 AM
print MAIL "To: jblase\@coe.uga.edu\n";
Missing '\' maybe?

PittsburghRed
01-12-2005, 08:29 PM
print MAIL "To: jblase\@coe.uga.edu\n";
Missing '\' maybe?

The "\" is right there, isn't it? And both code snippets are identical.

PittsburghRed
01-12-2005, 08:42 PM
Why does the jblase address light up and other does not? Why is it behaving like an email link?

open (MAIL, "|$mailprog -t") || die "Can't open mail program\n";
print MAIL "To: jblase@coe.uga\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);

I typed the address over to see if would light up.

PittsburghRed
01-12-2005, 08:45 PM
Nedals!!!!! you are right. I was looking at the wrong "\"!!!!
kiss kiss kiss. That's it! Thank you.