kisebb-sajáttőke

Magazine
Go Back   Számítógép Juice > Számítógépes szoftver > Web Design, Hosting & SEO

Register


 Default 

Körte mail




Reply
 
Téma eszközök
  #1  
Old Március 30 2008, 12:21
Csoport tagja
 
Default Körte mail

Hello all im egy probléma Körte mail.php

im szerzés ez a hibaüzenet

Végzetes tévedés: Class "Mail" nem talált \ PEAR \ mail.php on-line 26

Itt van a kód

[php]
<? php
/ / Hivatkozás a Mail PEAR könyvtár
és require_once 'Mail.php';
/ / Main osztály, használni ahhoz, hogy információt,
/ / Run csővezeték szakaszok, audit megbízások, stb
osztály OrderProcessor
(
public $ mOrderId;
public $ mOrderStatus;
public $ mConnection;
public $ mConfiguration;
public $ mContinueNow;
private $ mCurrentCustomer;
private $ mCurrentOrderDetails;
private $ mOrderManager;
private $ mReference;
private $ mAuthCode;
/ / Konstruktor hoz létre DoOrderManager fokon
function __construct ()
(
$ this-> mOrderManager = new DoOrderManager ();
)
/ / Process hívott checkout.php és orders_admin.php feldolgozása
/ / Annak érdekében, az első paraméter az azonosító a megrendelés, és a második
/ / Paraméter egy OrderProcessorConfiguration fokon.
public function process ($ newOrderId, $ newConfiguration)
(
/ / Set érdekében ID
a $ this-> mOrderId = $ newOrderId;
/ / Configure processzor
a $ this-> mConfiguration = $ newConfiguration;
a $ this-> mContinueNow = true;
/ / Log start végrehajtás
$ this-> AddAudit ( "Order Processor kezdett.", 10000);
/ / Státusz megszerzése érdekében a
a $ this-> mOrderStatus = $ this-> mOrderManager-> GetOrderStatus ($ this-> mOrderId);
/ / Folyamat csővezeték szakasz
próba
(
while ($ this-> mContinueNow)
(
a $ this-> mContinueNow = false;
$ cps = $ this-> GetCurrentPipelineSection ();
$ cps-> process ($ this);
)
)
catch (Exception $ e)
(
trigger_error ( "Exception" '. $ e-> getMessage (). "" on ".
$ e-> getFile (). "Sort". $ e-> getLine ());
$ this-> MailAdmin ( "Order Processing error ocured.", $ e-> getMessage ());
$ this-> AddAudit ( "Order Processing error ocured.", 10002);
throw new Exception ( "feldolgozó hiba");
)
$ this-> AddAudit ( "Order Processor kész.", 10001);
)
/ / Kap egy objektumot képviselő például a jelenlegi csővezeték-szakasz
private function GetCurrentPipelineSection ()
(
switch ($ this-> mOrderStatus)
(
case 0:
$ this-> mCurrentPipelineSection = new PsInitialNotification (); break;
1. eset:
$ this-> mCurrentPipelineSection = new PsCheckFunds (); break;
case 2:
$ this-> mCurrentPipelineSection = new PsCheckStock (); break;
case 3:
$ this-> mCurrentPipelineSection = new PsStockOk (); break;
4. eset:
$ this-> mCurrentPipelineSection = new PsTakePayment (); break;
5. eset:
$ this-> mCurrentPipelineSection = new PsShipGoods (); break;
case 6:
$ this-> mCurrentPipelineSection = new PsShipOK (); break;
7 eset:
$ this-> mCurrentPipelineSection = new PsFinalNotification (); break;
esetében 8:
throw new Exception ( "Rendeljen már befejeződött.") break;
alapértelmezett:
throw new Exception ( "Ismeretlen gázvezeték szakaszban kért.");
)
)
/ / Küld e-mailben
public function mail ($ params, $ to, $ headers, $ message)
(
/ / Create a mail objektumot a Mail:: factory mód
$ mail_object = Mail:: factory ( 'smtp', $ params);
/ / Test az e-mail tárgy érvényes
if (PEAR:: ISERROR ($ mail_object))
throw new Exception ($ mail_object-> getMessage ());
/ / Küld e-mailben
$ result = $ mail_object-> send ($ to, $ headers, $ message);
/ / Test, ha e-mail-ben elküldve
if (PEAR:: ISERROR ($ result))
throw new Exception ( "Nem lehet elküldeni e-mailben $ to.".
$ result-> getMessage ());
)
/ / E-mail üzenet épít
public function MailAdmin ($ subject, $ message)
(
/ / Általában nem megengedett beállíthatjuk, hogy a 'From' header
$ headers [ 'From'] = $ this-> mConfiguration-> mOrderProcessorEmail;
$ headers [ 'subject'] = $ subject;
$ headers [ 'To'] = $ this-> mConfiguration-> mAdminEmail;
a $ this-> mail ($ this-> mConfiguration-> mOrderProcessorEmailParams,
a $ this-> mConfiguration-> mAdminEmail,
$ headers,
$ message);
)
/ / Kap az ügyfél, hogy megtette a sorrendben
public function GetCurrentCustomer ()
(
: if (empty ($ this-> mCurrentCustomer))
(
a $ this-> mCurrentCustomer = new
Ügyfél ($ this-> mOrderManager-> GetCustomerByOrderId ($ this-> mOrderId));
: if (empty ($ this-> mCurrentCustomer))
throw new Exception ($ this-> mOrderId. "rend nincs
ügyfél ");
)
return $ this-> mCurrentCustomer;
)
/ / Megkapja a részleteket az aktuális sorrendben
public function GetCurrentOrderDetails ()
(
: if (empty ($ this-> mCurrentOrderDetails))
(
a $ this-> mCurrentOrderDetails = new
OrderDetails ($ this-> mOrderManager-> GetOrderDetails ($ this-> mOrderId));
: if (empty ($ this-> mCurrentOrderDetails))
throw new Exception ($ this-> mOrderId.
"Nem megrendelésére vonatkozó bejegyzés");
)
return $ this-> mCurrentOrderDetails;
)
/ / Hozzáadja audit üzenet
public function AddAudit ($ message, $ messageNumber)
(
a $ this-> mOrderManager-> AddAudit ($ this-> mOrderId, $ message, $ messageNumber);
)
/ / Státusz frissítés érdekében
public function UpdateOrderStatus ($ newStatus)
(
a $ this-> mOrderManager-> UpdateOrderStatus ($ this-> mOrderId, $ newStatus);
a $ this-> mOrderStatus = $ newStatus;
)
/ / Set érdekében engedélyével kódot és hivatkozási kóddal
public function SetOrderAuthCodeAndReference ($ newAuthCode, $ newReference)
(
a $ this-> mOrderManager-> SetOrderAuthCodeAndReference ($ this-> mOrderId,
$ newAuthCode,
$ newReference);
a $ this-> mAuthCode = $ newAuthCode;
a $ this-> mReference = $ newReference;
)

/ / Kap engedélyt, hogy a kódot és a referencia kód
private function GetOrderAuthCodeAndReference ()
(
$ result = $ this-> mOrderManager-> GetOrderAuthCodeAndReference (
a $ this-> mOrderId);
if (empty ($ result)) throw Exception ($ this-> mOrderId. "nem létezik");
$ this-> mAuthCode = $ result [ 'auth_code'];
$ this-> mReference = $ result [ 'reference'];
)
/ / Kap engedélyt, hogy a kódot
public function GetAuthCode ()
(
: if (empty ($ this-> mAuthCode)) $ this-> GetOrderAuthCodeAndReference ();
return $ this-> mAuthCode;
)
/ / Gets rendezés hivatkozási kóddal
public function GetReference ()
(
: if (empty ($ this-> mReference)) $ this-> GetOrderAuthCodeAndReference ();
return $ this-> mReference;
)
/ / Set érdekében hajója dátum
public function SetDateShipped ()
(
a $ this-> mOrderManager-> SetDateShipped ($ this-> mOrderId);
)
)

?>
[/ php]

Kérem, segítsen valaki, hogy lesz appreciated. megy ilyen bolond.

Nagyon köszönöm
  #2  
Old Március 31 2008, 17:31
Donor Group
 
Default Körte mail

Hát ezt el megoldani?

http://www.geeklog.net/forum/viewtop...howtopic=75900 tárgyalja meg. Én már nem használt semmilyen Körte modulok Windows alatt úgy próbálják meg a legjobb utat.
__________________

My System: Tim

Processzor (ok):
Athlon 64 3500 +
Alaplap:
Asus A8N-VM CSM
RAM memória:
Corsair PC3200 CL2 DDR-400 2GB
Grafikus kártya (k):
nVidia GeForce 6600 512MB
Hangkártya:
Cherry RS 6000 M billentyű
Merevlemez (ek):
Barracuda.7 + 2x200GB 58MB / s fenntartása
Optikai meghajtó (k):
Samsung DVD-ROM TS-H352
Case / tápegység:
Thermaltake Soprano
Hűtés:
Állomány
Hálózat / Internet:
Telewest 2x20Mb/sec
Monitor (ok):
SXGA panel
Operációs rendszer (ek):
Slackware (2.6.27.7) (Fluxbox)
Reply

Register

Könyvjelzõk

Hasonló szálak
Szál Thread Starter Fórum Válaszok Utolsó hozzászólás
Ubuntu levélben evilfantasy Linux és OS Alternatív 7 30. január 2009 14:37
E-mail vírus bilsat Vírus, kémprogram és biztonság 2 29. október 2008 09:58
Windows Mail dfr200764 E-mail, a VoIP és IM Vitalap 4 20. augusztus 2008 14:42
Mail az árengedmények Gazmondo Általános fémáru Chat 6 26. február 2008 17:01
Mail problémák " liamfi E-mail, a VoIP és IM Vitalap 3 1. január 2008 09:44
Téma eszközök




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright © 2006 - 2009 Számítógép Juice.

Powered by vBulletin ® Copyright © 2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO © 2009, Crawlability, Inc.