Error on Sendmail

jona

New member
Joined
Oct 16, 2004
Messages
1
I have recetnly transfer my web from Ensim to DirectAdmin.

After trasferring, everything working fine.
But, I have got the erorr message on sendmail

It was working find on Ensim and I didn't change anything.

My program(Perl) sends an email to me if someone post a message on the board.

The email sent by program is returned to admin. email with below message.



==== Message =====
A message that you sent using the -t command line option contained no
addresses that were not also on the command line, and were therefore
suppressed. This left no recipient addresses, and so no delivery could
be attempted.
=================


=== Command line in the program ===
sub sendMail {
open(MAIL,"|$gEmailPgm -t $gAdminEmail");
print MAIL "To: $gAdminEmail\n";
print MAIL "From: $name<$email>\n";
print MAIL "Subject: $subject\n";
$content =~ s/<p>/\n\n/g;
$content =~ s/<br>/\n/g;
print MAIL "$name wrote on $date";
print MAIL "\n--------------------------------------------------\n";
print MAIL "$content";
print MAIL "\n--------------------------------------------------\n";
close(MAIL);
}


"$gAdminEmail" is returning the corrected value.
(e.g. in the line of print MAIL "To: $gAdminEmail\n";
it returns the email address)

Do you have any ideas, what's wrong?

Thanks
 
Last edited:
Back
Top