![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 3.11.2007 Ostrzeżenie: (0%) ![]() ![]() |
Problem jest taki że nie można się zarejestrować na stronie, skrypt wogóle nie rejestruje użytkowników.
Może coś źle skonfigurowałem w class.phpmailer.php? Proszę o pomoc, skrypt jest pod adresem http://rafnal.yoyo.pl Paremetry konfuguracyjne mojej poczty: Host= smtp.poczta.onet.pl Username= rafnal@buziaczek.pl Password= xxxxxx Poniżej kod z class.phpmailer.php ///////////////////////////////////////////////// // PUBLIC VARIABLES ///////////////////////////////////////////////// /** * Email priority (1 = High, 3 = Normal, 5 = low). * @var int */ var $Priority = 1; /** * Sets the CharSet of the message. * @var string */ var $CharSet = "iso-8859-1"; /** * Sets the Content-type of the message. * @var string */ var $ContentType = "text/plain"; /** * Sets the Encoding of the message. Options for this are "8bit", * "7bit", "binary", "base64", and "quoted-printable". * @var string */ var $Encoding = "8bit"; /** * Holds the most recent mailer error message. * @var string */ var $ErrorInfo = ""; /** * Sets the From email address for the message. * @var string */ var $From = "rafnal@buziaczek.pl"; /** * Sets the From name of the message. * @var string */ var $FromName = "Portal Multimedialny"; /** * Sets the Sender email (Return-Path) of the message. If not empty, * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. * @var string */ var $Sender = ""; /** * Sets the Subject of the message. * @var string */ var $Subject = ""; /** * Sets the Body of the message. This can be either an HTML or text body. * If HTML then run IsHTML(true). * @var string */ var $Body = ""; /** * Sets the text-only body of the message. This automatically sets the * email to multipart/alternative. This body can be read by mail * clients that do not have HTML email capability such as mutt. Clients * that can read HTML will view the normal Body. * @var string */ var $AltBody = ""; /** * Sets word wrapping on the body of the message to a given number of * characters. * @var int */ var $WordWrap = 0; /** * Method to send mail: ("mail", "sendmail", or "smtp"). * @var string */ var $Mailer = "smtp"; /** * Sets the path of the sendmail program. * @var string */ var $Sendmail = "/usr/sbin/sendmail"; /** * Path to PHPMailer plugins. This is now only useful if the SMTP class * is in a different directory than the PHP include path. * @var string */ var $PluginDir = "phpmailer/"; /** * Holds PHPMailer version. * @var string */ var $Version = "1.72"; /** * Sets the email address that a reading confirmation will be sent. * @var string */ var $ConfirmReadingTo = ""; /** * Sets the hostname to use in Message-Id and Received headers * and as default HELO string. If empty, the value returned * by SERVER_NAME is used or 'localhost.localdomain'. * @var string */ var $Hostname = ""; ///////////////////////////////////////////////// // SMTP VARIABLES ///////////////////////////////////////////////// /** * Sets the SMTP hosts. All hosts must be separated by a * semicolon. You can also specify a different port * for each host by using this format: [hostname:port] * (e.g. "smtp1.example.com:25;smtp2.example.com"). * Hosts will be tried in order. * @var string */ var $Host = "smtp.poczta.onet.pl"; /** * Sets the default SMTP server port. * @var int */ var $Port = 25; /** * Sets the SMTP HELO of the message (Default is $Hostname). * @var string */ var $Helo = ""; /** * Sets SMTP authentication. Utilizes the Username and Password variables. * @var bool */ var $SMTPAuth = true; /** * Sets SMTP username. * @var string */ var $Username = "rafnal@buziaczek.pl"; /** * Sets SMTP password. * @var string */ var $Password = "xxxxxx"; /** * Sets the SMTP server timeout in seconds. This function will not * work with the win32 version. * @var int */ var $Timeout = 10; /** * Sets SMTP class debugging on or off. * @var bool */ var $SMTPDebug = false; /** * Prevents the SMTP connection from being closed after each mail * sending. If this is set to true then to close the connection * requires an explicit call to SmtpClose(). * @var bool */ var $SMTPKeepAlive = false; /**#@+ * @access private */ var $smtp = NULL; var $to = array(); var $cc = array(); var $bcc = array(); var $ReplyTo = array(); var $attachment = array(); var $CustomHeader = array(); var $message_type = ""; var $boundary = array(); var $language = array(); var $error_count = 0; var $LE = "\n"; /**#@-*/ |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 1 165 Pomógł: 9 Dołączył: 9.04.2002 Skąd: Toruń Ostrzeżenie: (0%) ![]() ![]() |
Napisz lepiej jak wywołujesz skrypt bo problem raczej tkwi po Twojej stronie a nie w klasie phpmailer, sprawdź też konfigurację swojego serwera pocztowego, czy na pewno wymaga autoryzacji itp.
Łukasz -------------------- |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 3.11.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam ponownie skrypt wywołuje tak:
Kod //CHECK HOTORNOT MEMBER LOGIN function chk_member_login($viewkey="") { global $config,$conn; $sql="select * from signup where UID=$_SESSION[UID]"; $rs=$conn->execute($sql); if($_SESSION['UID']=="" || $_SESSION['EMAIL']=="" || $rs->recordcount()==0) { $q = ""; while(list($k,$v)=each($_GET)){$q.="&$k=$v";} $q=base64_encode($q); if($q!="")$add="&add=$q"; $temp=$_SERVER['PHP_SELF']; $path=explode("/",$temp); $page=$path[count($path)-1]; $page=str_replace(".php","",$page); header("Location:$config[baseurl]/signup.php?next=$page$add"); exit; } } function session_to_db() { global $conn; $sql="select * from signup where UID=$_SESSION[UID]"; $rs=$conn->execute($sql); if($rs->recordcount()>0) { $_SESSION[EMAILVERIFIED]=$rs->fields['emailverified']; } } //MAIL FUNCTIION function mailing($to,$name,$from,$subj,$body,$bcc="") { $headers=""; global $SERVER_NAME; $subj=nl2br($subj); $body=nl2br($body); $recipient = $to; if($bcc!="") $headers = "Bcc: " . $bcc."\n"; $headers .= "From: " . $from . "\n"; //$headers .= "X-Sender: <" . "$to" . ">\n"; //$headers .= "Return-Path: <" . "$to" . ">\n"; //$headers .= "Error-To: <" . "$to" . ">\n"; $headers .= "Content-Type: text/html\n"; mail("$recipient","$subj","$body","$headers"); } //EMAIL VERIFICATION function isMailVerified() { global $config; if($_SESSION[EMAILVERIFIED]=="no")header("Location:$config[baseurl]/confirm_email.php"); } function is_commented($vid) { global $config,$conn; $sql="select count(*) as cnt from comments WHERE VID=$vid and UID=$_SESSION[UID]"; $rs=$conn->execute($sql); if($rs->fields[cnt]>0) return "yes"; } function is_video_commented($vid) { global $config,$conn; $sql="select be_comment from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields['be_comment']; } function is_video_rated($vid) { global $config,$conn; $sql="select be_rated from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields['be_rated']; } function is_video_embabed($vid) { global $config,$conn; $sql="select embed from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields['embed']; } Ale jeśli możesz to zobacz na stronkę jak on wygląda... z góry dzięki za pomoc Ten post edytował rafnal 5.11.2007, 19:07:01 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 11 Pomógł: 0 Dołączył: 19.12.2006 Ostrzeżenie: (0%) ![]() ![]() |
hehe tylko wiesz w powyzszym kodzie nie ma nawet funkcji ktora miala by rejestrowac uzytkowniak :]
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 21:06 |