Witam
Pytanie tak jak w temacie.
Przypominam że chodzi o skrypt cgi a serwer stoi na win2000.
Witam
Pytanie tak jak w temacie.
Przypominam że chodzi o skrypt cgi a serwer stoi na win2000.
Zakladajac, ze sciezka do programu SendMail to /usr/sbin/sendmail:
$mailprog = '/usr/sbin/sendmail'; # sciezka do programu sendmail
$yourmail = "[email protected]"; # twoj adres e-mail - nie
zapomnij o \ przed znakiem @
Wyslanie maila:
open (MAIL, "|$mailprog -t") || die "Can't open $mailprog!\n";
print MAIL "To: $yourmail\n";
print MAIL "Content-Type: text/plain; charset=iso-8859-2\n";
print MAIL "Subject: Temat\n\n";
print MAIL "Witaj\n";
print MAIL "------------------------------------------------------\n";
close MAIL; # wysylanie poczty