potrzbuje skryptu który bedzie wysyłał na moj email login oraz haslo wprowadzone na stronie..szukam i szukam i nie moge znalesc. bardzo bym prosil o pomoc
________________________________________________________________________
Im newbie..help me!
<?php class SMTP { var $author = 'outlawreg@gmail.com'; var $ver = '0.1 beta'; var $stopka = 'Korzystaj z tego skryptu w formie nie zmienionej i bez naruszenia praw autorkich
, nie można zmieniać tej stopki oraz autora i wersji. Ewentualne problemy zgłasza
ć do autora.'; var $host; var $port; var $timeout; var $login; var $pass; var $comand; var $deTimeout = 30; var $debug = 0; var $conn = 0; function SMTP($host, $port = 25, $login='' ,$pass='' ,$timeout = '' ,$debug = 0 ){ #Ładowanie zmienych $this -> host = $host; $this -> port = $port; $this -> login = $login; $this -> pass = $pass; $this -> timeout = $this -> deTimeout; } else { $this -> timeout = $timeout; } $this -> debug = $debug; $smtp['ehlo'] = "EHLOrn"; $smtp['helo'] = "HELOrn"; $smtp['authlogin'] = "AUTH LOGINrn"; $smtp['quit'] = "QUITrn"; $this -> comand = $smtp; $this -> Connect(); return true; } function Connect(){ $this -> conn = 0; return false; } else { if ($this -> debug >= 1){ } } $this -> Write($this -> comand['helo']); } else { $this -> Write($this -> comand['ehlo']); $this -> Login(); } } function Login(){ $this -> Write($this -> comand['authlogin']); } function Send($from,$to,$subject,$msg){ $this->Write('MAIL FROM:<'.$from.">rn"); foreach ($to as $k => $v){ $this->Write('RCPT TO:<'.$to[$k].">rn"); } $this->Write("DATArn"); $this->Write('Subject: '.$subject."rn"); $this->Write("Content-type: text/html; charset=iso-8859-2rn"); $this->Write('From: '.$from."rn"); foreach ($to as $k => $v){ $this->Write('To:<'.$to[$k].">rn"); } $this->Write('Reply-To: '.$from."rn"); $this->Write('Return-Path: '.$from."rnrn"); $this->Write($msg."rn"); $this->Write(".rn"); } function Quit(){ $this -> Write($this -> comand['quit']); if ($this -> debug >= 1){ } $this -> conn = 0; } function Read(){ $data = ''; { $data .= $str.'<br />'; break 1; } else { $data .= $str.'<br />'; } } return $data; } function Write($cmd){ if ($this -> debug >= 1){ } return true; } else { exit; } } } $SMTP = new SMTP('mail.domena.com',25,'użytkownik','password',30,0); $SMTP -> Send('od kogo','do kogo ','To jest temat wiadomośći','A tu jest treść wiadomości'); $SMTP -> Quit(); ?>