menšie majetkové --

Magazine
Go Back   Počítačové Juice > Computer Software > Web Design, hosting & SEO

Register


 Default 

Hruška mail




Reply
 
Thread Tools
  #1  
Old 30. marca 2008, 12:21
Člen Skupina
 
Default Hruška mail

Zdravím všetky im majú problém s Hruška mail.php

im získanie tejto chybe

Fatal error: Class' Mail 'nebol nájdený v \ PEAR \ mail.php on-line 26

tady je moje číslo

[php]
<? Php
/ / Referencia Mail PEAR knižnice
require_once 'Mail.php';
/ / Hlavná trieda, ktorý sa používa na získanie informácií o objednávke,
/ / Spustenie ropovodu sekcií, audit objednávok, atď
trieda OrderProcessor
(
public $ mOrderId;
public $ mOrderStatus;
public $ mConnection;
public $ mConfiguration;
public $ mContinueNow;
private $ mCurrentCustomer;
private $ mCurrentOrderDetails;
private $ mOrderManager;
private $ mReference;
private $ mAuthCode;
/ / Konštruktor vytvorí inštanciu DoOrderManager
function __construct ()
(
$ This-> mOrderManager = new DoOrderManager ();
)
/ / Proces sa nazýva od checkout.php a orders_admin.php spracovať
/ / Poradie, prvý parameter je identifikátor príkazu, a druhý
/ / Parameter je inštancie OrderProcessorConfiguration.
public function Process ($ newOrderId, $ newConfiguration)
(
/ / Nastaviť, aby ID
$ This-> mOrderId = $ newOrderId;
/ / Nastavenie procesora
$ This-> mConfiguration = $ newConfiguration;
$ This-> mContinueNow = true;
/ / Log začatia realizácie
$ This-> AddAudit ( "Objednávka Processor začalo.", 10000);
/ / Získanie štatútu objednávky
$ This-> mOrderStatus = $ this-> mOrderManager-> GetOrderStatus ($ this-> mOrderId);
/ / Proces úseku potrubia
skúsiť
(
while ($ this-> mContinueNow)
(
$ This-> mContinueNow = false;
cps $ = $ this-> GetCurrentPipelineSection ();
$ Tbl-> Process ($ this);
)
)
catch (Exception $ e)
(
trigger_error ( 'Exception' ". $ e-> getMessage (). '" o'.
$ E-> getFile (). "Line". $ E-> getline ());
$ This-> MailAdmin ( "Order Processing chyba ocured.", $ E-> getMessage ());
$ This-> AddAudit ( "Order Processing chyba ocured.", 10002);
throw new Exception ( "processor error");
)
$ This-> AddAudit ( "Objednávka Processor skončil.", 10001);
)
/ / Získa inštanciu objektu predstavujúce súčasný úseku potrubia
private function GetCurrentPipelineSection ()
(
switch ($ this-> mOrderStatus)
(
case 0:
$ This-> mCurrentPipelineSection = new PsInitialNotification (); break;
case 1:
$ This-> mCurrentPipelineSection = new PsCheckFunds (); break;
case 2:
$ This-> mCurrentPipelineSection = new PsCheckStock (); break;
case 3:
$ This-> mCurrentPipelineSection = new PsStockOk (); break;
case 4:
$ This-> mCurrentPipelineSection = new PsTakePayment (); break;
case 5:
$ This-> mCurrentPipelineSection = new PsShipGoods (); break;
case 6:
$ This-> mCurrentPipelineSection = new PsShipOK (); break;
case 7:
$ This-> mCurrentPipelineSection = new PsFinalNotification (); break;
case 8:
throw new Exception ( "Objednávka bola už dokončená.") break;
predvolené:
throw new Exception ( "Neznámy úseku potrubia požiadal.");
)
)
/ / Pošle e-mail
public function email ($ params, $ to, $ headers, $ message)
(
/ / Vytvorenie objektu pomocou mailu Mail:: továrenské metódu
$ = Mail_object Mail:: továreň ( 'smtp', $ params);
/ / Test pošty objekt je platná
if (PEAR:: ISERROR ($ mail_object))
throw new Exception ($ mail_object-> getMessage ());
/ / Pošle e-mail
$ Result = $ mail_object-> send ($ to, $ headers, $ message);
/ / Test, či mail bol úspešne odoslaný
if (PEAR:: ISERROR ($ result))
throw new Exception ( "Nemožno odoslať e-mail $ to.".
$ Result-> getMessage ());
)
/ / Vytvára e-mailovej správy
public function MailAdmin ($ subject, $ message)
(
/ / Obvykle nemôžete nastaviť 'Z' hlavičky
$ Headers [ 'Z'] = $ this-> mConfiguration-> mOrderProcessorEmail;
$ Headers [ 'subject'] = $ subject;
$ Headers [ 'to'] = $ this-> mConfiguration-> mAdminEmail;
$ This-> email ($ this-> mConfiguration-> mOrderProcessorEmailParams,
$ This-> mConfiguration-> mAdminEmail,
$ Headers,
$ Message);
)
/ / Získa zákazník, ktorý urobila objednávku
public function GetCurrentCustomer ()
(
if (empty ($ this-> mCurrentCustomer))
(
$ This-> mCurrentCustomer = new
Zákazník ($ this-> mOrderManager-> GetCustomerByOrderId ($ this-> mOrderId));
if (empty ($ this-> mCurrentCustomer))
throw new Exception ($ this-> mOrderId. "Aby nemá
customer ");
)
return $ this-> mCurrentCustomer;
)
/ / Získa informácie o aktuálnej poradí
public function GetCurrentOrderDetails ()
(
if (empty ($ this-> mCurrentOrderDetails))
(
$ This-> mCurrentOrderDetails = new
OrderDetails ($ this-> mOrderManager-> GetOrderDetails ($ this-> mOrderId));
if (empty ($ this-> mCurrentOrderDetails))
throw new Exception ($ this-> mOrderId.
"Nemá objednávku entry");
)
return $ this-> mCurrentOrderDetails;
)
/ / Pridajte audítorskej správy
public function AddAudit ($ message, $ messageNumber)
(
$ This-> mOrderManager-> AddAudit ($ this-> mOrderId, $ message, $ messageNumber);
)
/ / Aktualizácia stavu objednávok
public function UpdateOrderStatus ($ newStatus)
(
$ This-> mOrderManager-> UpdateOrderStatus ($ this-> mOrderId, $ newStatus);
$ This-> mOrderStatus = $ newStatus;
)
/ / Nastaviť, aby to autorizačný kód a referenčný kód
public function SetOrderAuthCodeAndReference ($ newAuthCode, $ newReference)
(
$ This-> mOrderManager-> SetOrderAuthCodeAndReference ($ this-> mOrderId,
$ NewAuthCode,
$ NewReference);
$ This-> mAuthCode = $ newAuthCode;
$ This-> mReference = $ newReference;
)

/ / Dostane, aby autorizačný kód a referenčný kód
private function GetOrderAuthCodeAndReference ()
(
$ Result = $ this-> mOrderManager-> GetOrderAuthCodeAndReference (
$ This-> mOrderId);
if (empty ($ result)) throw Exception ($ this-> mOrderId. "neexistuje");
$ This-> mAuthCode = $ result [ 'auth_code'];
$ This-> mReference = $ result [ 'reference'];
)
/ / Dostane, aby autorizačný kód
public function GetAuthCode ()
(
if (empty ($ this-> mAuthCode)) $ this-> GetOrderAuthCodeAndReference ();
return $ this-> mAuthCode;
)
/ / Poradie získa referenčný kód
public function GetReference ()
(
if (empty ($ this-> mReference)) $ this-> GetOrderAuthCodeAndReference ();
return $ this-> mReference;
)
/ / Nastaviť, aby loď dátum
public function SetDateShipped ()
(
$ This-> mOrderManager-> SetDateShipped ($ this-> mOrderId);
)
)

?>
[/ Php]

Prosím pomôžte niekto bude veľmi oceňované. prebiehajúce druhu šialený.

Díky moc
  #2  
Old 31. marca 2008, 17:31
Darcu Skupina
 
Default Hruška mail

Sa to dostat vyriešiť?

http://www.geeklog.net/forum/viewtop...howtopic=75900 Diskutuje sa. I've nepoužívajú žiadne Hruška moduloch pod Windows tak zkouším je váš najlepšiu cestu vpred.
__________________

Môj systém: Tim

Processor (s):
Athlon 64 3500 +
Základná doska:
Asus A8N-VM CSM
Pamäť RAM:
Corsair DDR PC3200 CL2-400 2GB
Grafické karty (s):
nVidia Geforce 6600 512 mb
Zvuková karta:
Cherry RS 6000 M klávesnice
Pevný disk (y):
Barracuda.7 + 2x200GB 58 MB / s udržanie
Optická mechanika (s):
Samsung DVD-ROM TS-H352
Case / PSU:
Thermaltake soprán
Chladenie:
Sklad
Sieť / Internet:
Telewest 2x20Mb/sec
Monitor (s):
SXGA plochý
Operačný systém (y):
Slackware (2.6.27.7) (Fluxbox)
Reply

Register
Thread Tools




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 Počítačová Juice.

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