hello,
I've use this perl script
but i've not received the mails
i don't understand why ?
Can you help me ?
Thanks
I've use this perl script
Code:
#!/usr/bin/perl
unless(open (MAIL, "|/usr/sbin/sendmail -t")) {
print "error.\n";
warn "Error starting sendmail: $!";
}
else{
print MAIL "From: me\@mydom.com\n";
print MAIL "To: address\@mailserver.com\n";
print MAIL "Subject: test subject\n\n";
print MAIL "test mail message";
close(MAIL) || warn "Error closing mail: $!";
print "Mail sent.\n";
}
but i've not received the mails
i don't understand why ?
Can you help me ?
Thanks