I tried to send mail and failed:
1)
$recv="recipient\@host.com";
open(MAIL,"|/usr/lib/sendmail -t"
;
print MAIL "To: $recv\n";
.....
but this works:
2)
open(MAIL,"|/usr/lib/sendmail -t"
;
print MAIL "To: recipient\@host.com\n";
.....
is my 1) coding wrong, how to fix it?
1)
$recv="recipient\@host.com";
open(MAIL,"|/usr/lib/sendmail -t"
print MAIL "To: $recv\n";
.....
but this works:
2)
open(MAIL,"|/usr/lib/sendmail -t"
print MAIL "To: recipient\@host.com\n";
.....
is my 1) coding wrong, how to fix it?