uhillnet
06-24-2010, 02:13 PM
I have used this mailing format successfully on other servers, but not here.
open(ML,"|sendmail -f user@domain.com -t") || die "Can't send mail";
print ML "To: receiver@domain.com\n";
...
close ML;
This doesn't work on this server.
I get a "Can't send mail" error in the logs.
What is the right way to do this in perl on this machine?
open(ML,"|sendmail -f user@domain.com -t") || die "Can't send mail";
print ML "To: receiver@domain.com\n";
...
close ML;
This doesn't work on this server.
I get a "Can't send mail" error in the logs.
What is the right way to do this in perl on this machine?